OZONE Asylum
Forums
DHTML/Javascript
createElement("div") + IE?
This page's ID:
27802
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quickReply_that_might_need_cross_browser_hacks_in_crappy_browsers] When hooking an a function to an event handler, you must pass the handle of function, no a call to a function, so the syntax should be :[code] function dothis( evt ) { var evt = evt||event, element = evt.target||evt.srcElement||this; alert( element.id +'\n'+ element.parentNode ) } divHandle.onmouseup = dothis;[/code]/!\ the code above is probably not 100% correct, but I can't be bothered to check it at ~2 o'clock after a few beers and before a short night. :p Sure it's possible to acces the parent of a node, just use the [i]parentNode[/i] property. Anyway, hope that helps. [/quickReply_that_might_need_cross_browser_hacks_in_crappy_browsers] [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 04-19-2006 01:56)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »