So can you test for "node.name"? <!----------------//------ andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//--------->
-----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 02, 2006 3:24 PM To: CF-Talk Subject: RE: OT javascript Q: Show/hide divs...works in IE, not in FF. Does anyone have any ideas about this? I've talked to two other js guys and none of us can figure out what's going wrong. I'd really appreciate some input. Thanks. You have to be careful what IE and Firefox calls a child node. IE only makes element child nodes, FF makes everything, including blank lines child node. Obviously these types of child node would not have a style, or any other kind of, property. The fix is to test for the existence of the property, or the type of the child node before applying changes to it. IE View: <div> <p><--- child node 1 of parent div. </div> FF view: <div <--- child node 1 of parent div. <p><--- child node 2 of parent div. <--- child node 3 of parent div. </div> -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231205 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54