Solved

JavaScript popUp interrupts HTML loading

Posted on 2009-04-15
5
320 Views
Last Modified: 2012-05-06
I have a page with a Google map,markers and lots of images in it. On page onload event using Ajax request I am loading markers on Google map.

When page starts loading, i am displaying popup div (modal form). For that reason i have kept this pop up div on start of the page.
So when page starts rendering popup appears. This popup have link to close this pop up. The reason is to keep user busy with reading initial information and at backend display Google map and markers.

The problem is that while the images are loading on the page, if the user clicks on the link of the pop-up, then the loading of the page is interrupted. So remaining images as well google map with AJAX request doesn't appears, indirectly it interrupts onLoad event of page in IE 6.

Can anybody tell me how can i resolve this conflict?
0
Comment
Question by:teenashah
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Dimitris
Comment Utility
Your problem is that you open the popup on modal dialog.
Change it to modless and it will be solved.
Modal forces the execution to stop and waits until you close the window.
Modless opens the window and the code continues to be executed
0
 

Author Comment

by:teenashah
Comment Utility
Hi,

Above issue has been resolved by own.
0
 
LVL 12

Expert Comment

by:Dimitris
Comment Utility
Please inform us about the way you have resolve it
Just to know :)
0
 

Accepted Solution

by:
teenashah earned 0 total points
Comment Utility
Hi All,

I found that while loading pages having images and others stuff loading, if user clicks any such a link available on page, browser mostly IE6 stops rendering HTML page.

So I just replaced href link with span tag and onclick event of span called required JS code spec.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now