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
LVL 11
Jon WinterburnAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Gurvinder Pal SinghConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.