Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 852
  • 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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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