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...
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...
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...
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?
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...
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...
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"...
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?
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!
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!
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.