The Natural Philosopher said the following on 9/13/2007 7:18 PM:
I found an odd one today.
An odd "what"? Please quote what you are replying to.
The innerHTML thing cause some sort of wobbly in IE7.
Test page?
I had a function which did lots of stuff incuding changing some text on
a screen. In IE7 it didn't work.
Then something else in your code was screwing it up.
Eventually I discovered that nothing after a blah.innerHTML=myvariable;
command worked in that function.
Then something else in your function was screwing it up.
So I put it at the end of the function, and all now works..
Test page?
Q1/ Why?
My stereo doesn't work. Why?
You can't diagnose what you can't see.
Q2/ given a statement of the form <SPAN name="CHANGME">some text</SPAN>,
other than getelementsByName('CHANGEME')[0].InnerHTML="MYCRAP" how else
to achieve the same end?
Parse MYCRAP and use createTextNode and createElement.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -
http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/