Solved

jQuery "loading" modal onclick of href

Posted on 2010-09-08
1
835 Views
Last Modified: 2012-05-10
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
Comment
Question by:Jon Winterburn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33625662
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question