I ask because the javascript looks fine, all I can think of is that
selectedDateId isn't a valid identifier..:
I imagine you are actually doing something like:
getElementById(\"" + selectedData.UniqueId + "\")...
OR
selectedDataId is an actual JS variable which you hopefully properly assign
before this code executes..
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:12**********************************@microsof t.com...
No javascript error.
"Karl Seguin" wrote:
Is there a javascript error? (use fireforx and type javascript: to see
errors).
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:38**********************************@microsof t.com...
Hi,
I have the following javascript that should change the background
color of an element in a table:
script.Append("document.getElementById(selectedDat eId).style.backgroundColor = \"#00008b\"; \n");
script.Append("document.getElementById(selectedDat eId).className =
\"AIMSSelectedDay\"; \n");
However, the color is never changed. I tried to put some "alert"
statement to see whether the function is accessed, and it is. Am I doing
something wrong?
Thanks.
Mike