• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 67746
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
 
Marshal
Posts: 28193
95
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

 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic