Forgot Password?

Donate Us to maintain the Cell Phone Forum
 
Cellphone Forum » Cell Phone Manufacturers » HTC » How do people simulate the ondocumentready eventlistener for microsoft's...
HTC HTC smartphone news and discussions.

Reply
How do people simulate the ondocumentready eventlistener for microsoft's... LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-01-2007, 04:36 PM
apl apl is offline
Junior Member
 
Join Date: Dec 2007
Default How do people simulate the ondocumentready eventlistener for microsoft's...

...htc files to just regular javascript. Basically I want a javascript function to be called when an html element is rendered. I am currently using iframes or the img tag to simulate the htc event ondocumentready since those are the only html elements supporting the onload property. It all works well, is there a better way?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-01-2007, 07:45 PM
giloosh99 giloosh99 is offline
Junior Member
 
Join Date: Dec 2007
Default

try putting the javascript code right underneath the html element that you are waiting for to render.for example:bla bla blabla bla blaalert("image1 is rendered");bla bla blabla bla blaalert("image2 is rendered");
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links

Reply


Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 12:46 PM.


Sponsored Links
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45