Solved

JavaScript popUp interrupts HTML loading

Posted on 2009-04-15
5
331 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
ID: 24148005
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
ID: 24154596
Hi,

Above issue has been resolved by own.
0
 
LVL 12

Expert Comment

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

Accepted Solution

by:
teenashah earned 0 total points
ID: 24165005
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

772 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