Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
![]() |
•
•
Join Date: Nov 2007
Location: Romania, Constanta
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
The problem seems to be that you can execute the JavaScript code only after all the html document is ready (that means markup, content text and fully loaded images).
If you can wait until saturday/sunday I'll have a look over your problem and suggest the best action.
p.s.: sorry for the long time, but work is keeping me busy.
If you can wait until saturday/sunday I'll have a look over your problem and suggest the best action.
p.s.: sorry for the long time, but work is keeping me busy.
Standard Blue.
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
The problem seems to be that you can execute the JavaScript code only after all the html document is ready (that means markup, content text and fully loaded images).
If you can wait until saturday/sunday I'll have a look over your problem and suggest the best action.
p.s.: sorry for the long time, but work is keeping me busy.
Thanks, you're much appreciated! I still haven't found a solution.
Last edited by badda : Feb 2nd, 2008 at 11:36 am.
•
•
Join Date: Nov 2007
Location: Romania, Constanta
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
There are two solutions you can try: the first one is to call your JavaScript code at the end of the html body tag
This way, when the web engine parses the document it will have most of the DOM ready for the JavaScript code.
Another option will be to use the DOMContentLoaded event which basically does the same thing, but it's supported only by Mozilla.
p.s.: The window.onload() gives full control to JavaScript when all the html document has been processed (including tags/ scripts / images / etc. )
p.p.s.: I've tried to look back over your example test page, but couldn't find it.
<body> [all HTML] <script type="text/javascript" src="myscript.js"></script> </body> </html> // at the end of myscript.js initialiseFunction();
This way, when the web engine parses the document it will have most of the DOM ready for the JavaScript code.
Another option will be to use the DOMContentLoaded event which basically does the same thing, but it's supported only by Mozilla.
p.s.: The window.onload() gives full control to JavaScript when all the html document has been processed (including tags/ scripts / images / etc. )
p.p.s.: I've tried to look back over your example test page, but couldn't find it.
Standard Blue.
•
•
Join Date: Jan 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
I'm not sure if the onload event can help me in any way.
Had to move the example page: Here's the new URL:
http://sitexplorer.redio.de/test/
Had to move the example page: Here's the new URL:
http://sitexplorer.redio.de/test/
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: $('idname') means what?
- Next Thread: Position and Load an image when Clicked
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode