Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. machine08

    splitting up items separated by semicolon

    Hello k5tm, Thank you for the link you sent me. It has made me start thinking of how to go about doing this. I have a lot of studyng to do with XSLT. I found another example that is exactly what I'm looking for: http://clintcherry.spaces.live.com/blog/cns!AEC0DCBC460E45B9!431.entry Could...
  2. machine08

    splitting up items separated by semicolon

    After doing some more research into this I think this might be possible to do via <xsl:value-of select="substring-before(@Area, ';')" /> This grabs the first item in the string. The question I now have is how would I loop through the node to do this kind of string manipulation to the row...
  3. machine08

    splitting up items separated by semicolon

    Hi All, I'm trying to do some work with XSLT and Sharepoint. I currently get some output that is separated by a semicolon all in on row(i.e.: one;two;three;four) I would like to change this via xslt to: one two three four I'm very new to XSL. Could someone give me an example of how to...
  4. machine08

    url string manipulation

    Kaht and BabyJeffy. Thank you both for your guidance and explanation. BabyJeffy, that worked great!
  5. machine08

    url string manipulation

    Hi Kaht. This would be an anchor. Thanks!
  6. machine08

    url string manipulation

    OK let me give more details about the requirements. The current page might have a parameter in the url (ie. ?Area=US) If there is a parameter in the current page and a user clicks on the button, I would like to pass this parameter to the button as well. Does this make sense?
  7. machine08

    url string manipulation

    Sorry I I did not explain myself well. What I want to compare is the window.location.href of the page with a button that redirects that page. I want to compare those 2 URL and do some string manipulations before redirecting the user. I.E. window.href.location is www.google.com there's a...
  8. machine08

    url string manipulation

    Hi all, I'm having a hard time understanding how to compare url strings. Here's my scenario: I have a button in my page that redirects user to another page. I would like to grab that url string and compare it with the url of the actual page the user is in. If I do an onclick event on the...
  9. machine08

    receiving parameters from url

    Thank you Thank you Thank you! Obciously something very basic! So I take it you need this function to load the document! ;)
  10. machine08

    receiving parameters from url

    Thank you all for your help thus far... I re-created my issue with a plain table. Here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"...
  11. machine08

    receiving parameters from url

    That is what I understood. For some reason is not working. I wonder what is causing this?
  12. machine08

    receiving parameters from url

    tsuji, Thank you for your feedback! Greatly appreciated. Currently there's only 1 TD with the id mentioned above: <td id="gcr" > GCR </td> Shouldn't this line of code: document.getElementById("gcr").style.backgroundColor = "yellow"; change the background of that TD to yellow?
  13. machine08

    receiving parameters from url

    Apparently id="gcr" is not being recognized. I just tried the following: var x=document.getElementsByName("gcr"); alert(x.length); and got 0. My next question would be, How do I give the TD element I want to change it's background color the id="gcr"? Thank you!
  14. machine08

    receiving parameters from url

    More info.. The error I'm getting is a "Object Required" error. I made the TD I want to change colors the id="gcr". Is this not the correct way of doing it? Thank you!
  15. machine08

    receiving parameters from url

    OK, here's the correct file... Sorry I'm new! :) Like I mentioned before, I'm hard coding the name of the element and just trying to change the background color of it's element (gcr) when the file loads up. Attaching the file. Thank...
  16. machine08

    receiving parameters from url

    Trying the url path for the file at box.nethttp://www.box.net/index.php?rm=box_v2_download_file&file_id=f_132352467
  17. machine08

    receiving parameters from url

    Hi again, I uploaded the file to box.net. Not sure how to share it though? Do you know? Thanks!
  18. machine08

    receiving parameters from url

    Hi dwarfthrower, I believe there's an element with the ID I'm passing. I'm attaching the file. All I would like to test is when the page gets loaded I would like element with id="gcr" to change its background color to yellow. But when I write the following line...
  19. machine08

    receiving parameters from url

    Hi all, Simple question but my lack of JS experience is slowing me a bit. I would like to pass an element ID via url. Not sure how this is done but what I'm concerned is how to receive parameters via url. Suppose the url I have is: www.pagename.aspx?id=variable1 I understand that in the...
  20. machine08

    keep track of previous change

    Thank you Kaht! Your example worked like a charm and I appreciate your explanation! Thanks again! I'm really digging JS! :)

Part and Inventory Search

Back
Top