Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
probably a stupid question but
Marc Luzietti
Ranch Hand
Posts: 84
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
IE 6 is telling me the following code is missing a semi-colon, but I don't think it is. I think the problem might be in line 4.
function setPrint() { var x = document.getElementsByClassName('checkbox'); for (var i=0;i<x.length;i++) { if (x[i].parentNode.parentNode.parentNode == 'tbody') { if (x[i].parentNode.parentNode.className == '') { this.parentNode.parentNode.className = 'printMe'; } else if (x[i].parentNode.parentNode.className == 'rowEven') { this.parentNode.parentNode.className = 'rowEven printMe'; } else if (x[i].parentNode.parentNode.className == 'rowEven printMe') { this.parentNode.parentNode.className = 'rowEven'; } else (x[i].parentNode.parentNode.className == 'printMe') { this.parentNode.parentNode.className = ''; } } } }
Support Kathy Sierra
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
else (x[i].parentNode.parentNode.className == 'printMe') { this.parentNode.parentNode.className = ''; }
else
doesn't take a conditional expression. Missing an
if
perhaps?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
No, tomorrow we rule the world! With this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSF- Duplicate Component Id Exception
Why declare an object and instantiate it as instance of inherited type?
Wait cause which Object to wait...?
can private methods be overridden?
Accessing instance members before the super constructor completes
More...