• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Image loading problem on browser

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Thanks a lot in advance.
We are using J2EE as technology for our application. And there are some images which we have used in JSP some are preloaded images in jsp and some are coming from CSS back ground images. But suppose if user clicks on any link while loading images on browser application is giving javascript error for that image source.
I don’t want allow user until and unless all images are loaded on browser.
Please help me how to do this.

Regards,
Sree
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Normal image loading has nothing to do with JavaScript. If you are getting JavaScript errors there's something else at play here that you are not telling us. Perhaps you should elaborate.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does your image preloader look like and what does your link look like. With those two thing, I am sure we could help you out.

Eric
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.
Just want to keep the user busy or blocked till all images are loaded on the browser.
Actullay we have some links which will takes the source of that image and will redirect to some other page.
Howerver,the image is still not loaded so javascript will not get source of that image hence it is giving error.
So I want to block the page.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There really is nothing you can do with loading images. If your images are taking forever, sounds like you need to optimize the images and use cnames to make them load faster.

Eric
 
Sheriff
Posts: 28326
96
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And if your images are loading slowly, then (I speak from personal experience) blocking the user from looking at the rest of the page or scrolling through it is quite annoying. So if you thought that would be a useful feature, I don't agree.
 
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
function cursor_wait() {
document.body.style.cursor = 'wait';
}

saying the enduser that page is busy

 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic