Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 860
  • Last Modified:

jQuery "loading" modal onclick of href

Hi experts,

I have a HTML/Javascript/CSS mobile webapp that has a link (a href) to an external website. I would like to have a nice ajax-style "loading" modal screen popup when the user clicks the button which remains in place until the external website is loaded. If the website is unavailable, the modal screen should display a friendly error. This is so that if the user's phone connection is slow or unavailable, they are notified.

Any ideas where I could get hold of some sample code for this in jQuery/Javascript?

Thanks

Jon
0
Jon Winterburn
Asked:
Jon Winterburn
1 Solution
 
Gurvinder Pal SinghCommented:
you can use the jquery modal dialog box
http://jqueryui.com/demos/dialog/

this can be opened at the click event of an anchor tag also
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now