Topic: multiple parentNode (s) (Page 1 of 1) |
|
---|---|
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
posted 08-30-2002 00:49
OK, I have this page, and inside it contains a complicated table inside a <div>. I plan to assign an image inside one of the tables (inside a table) as a control to do something with the parent DIV. Easy enough, it seems, and yes, I do have a snippet that works, but.. er, it looks frigging *hideous*! I have this line for instance, to alter the width of that div... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 08-30-2002 01:00
Hmm, I'm not sure if there *is* a much more elegant solution. XPath would certainly be helpful here... =) |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-30-2002 10:14
or you could take lots of acid. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 08-30-2002 10:15
hehehe... "Year 2002: DocOzone pioneers Obfuscated DOM" |
Nervous Wreck (II) Inmate From: uk |
posted 09-01-2002 04:02
This is intersting. If you are not using document.getElementById because you have no Id in the div tag and you do not know where the element appears in the array, i think there are a couple of options |