Results 1 to 2 of 2
Thread: New site w java script problems
-
07-14-2002, 05:25 AM #1Junior Guru Wannabe
- Join Date
- Aug 2001
- Location
- Sweden
- Posts
- 87
SITECHECK: New site w java script problems
Hulloa,
Can you pls take a look at this. (Disregard lousy image enlargements. They're mock-ups for the time being...). Obviously, I have a java script error at line 107, char 56 in every main frame page (they have the same template).
http://www.vendelcommunications.com/KPA_Ultra/
In the script, the erroneous line reads :
if (document.all) {g=eval(f+"document.all['"+el+"']");d=g.style;
The "char 56" seems to be the "=".
This is waaayyy above my head to fix. Have looked into O'Reilly's about "styles" in java script. I don't understand half of it, but it appears as if the CSS I have linked to the page (and the script elements) is causing this?
A million TIA for your kind, gentle and clever input
DaniLast edited by Dani; 07-14-2002 at 07:32 AM.
Best,
Dani
Proformica.com - Marketing, web and more...
TiddliBoom.com - The awesomest t-shirts on the net...
-
07-15-2002, 01:56 AM #2Web Hosting Master
- Join Date
- Jan 2002
- Location
- Melbourne, AU
- Posts
- 740
The line giving the error is:
Code:if (document.all) {g=eval(f+".document.all['"+el+"']");d=g.style; if(!d.left) {d.left=(!g.currentStyle)?0:g.currentStyle.left;}
If you remove the first . in the .document.all bit, a more meaningful error appears - g.style blah blah, although your style detail isn't available in the source listing.
Please note I am in no way any good at this stuff
Lats...