•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 330,339 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,721 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 324 | Replies: 2 | Solved
![]() |
Hello,
I'm developing a web theme. Before the last div tag(Which simply has an image), I have added a java script which is calling a remote server for an image output. the last div tag image doesn't get loaded until the javascript execution completes. Please let me know a way to change this order ( load the javascript after the last image is loaded) as the whole design looks bad due to this problem.
Thanks in advance
I'm developing a web theme. Before the last div tag(Which simply has an image), I have added a java script which is calling a remote server for an image output. the last div tag image doesn't get loaded until the javascript execution completes. Please let me know a way to change this order ( load the javascript after the last image is loaded) as the whole design looks bad due to this problem.
Thanks in advance
Last edited by sampathw : 8 Days Ago at 8:30 am.
Place the block of Javascript code *after* the DIV tag and things should work out fine. It problems still persist, consider attaching a listener to the onload event handler of the window object which would execute the required Javascript only after the entire page has loaded.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
•
•
•
•
access activation api blogger blogging blogs code code injection combo dani daniweb data debugging development dreamweaver dropdownlist epilepsy firefox gdata google gpl griefers hackers html innovation javascript key linux microsoft module net news openbsd product programming reuse rss serial source tags vista web wysiwyg xml
- Previous Thread: HTML
- Next Thread: Exporting data to Excel



Linear Mode