• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Need to allow user to click only once in an ONCLICK EVENT

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am designing a web page containing images and I want user to see all the images one by one on an onclick event. I do not want user to miss even a single image.

If the user clicks the next button twice, it should go only to the next image and it should not respond for how many ever clicks he makes, till the next image is loaded.

Is there anyway to do this?

I have tried with getting the image height and width and check with the original height & width of the image. But the image sizes are same.

Please please help me in this issue.

I am totally fed up about trying a lot of things but unsuccessful. I would be grateful if someone helps me.

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in the onclick function disable the next button, until the new image is appeared.

 
Baranidharan Ramakoti
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have done that. But how to check whether the image is fully loaded or not.

I used:


I just wrote the above code to check it. But it always returns only true and it makes the next button visible even if the next image is not fully loaded.

Please help me

Thanks a lot for your instant reply.
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try to take a look at the following link
 
Baranidharan Ramakoti
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for immediate replies. Thank you so much. You have helped me in solving a big issue which was chewing my brains for almost a day.

Again I thank you a lot. May God Bless You.


BARANIDHARAN
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are welcome ;)
 
Maybe he went home and went to bed. And took this tiny ad with him:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic