Solved

JavaScript popUp interrupts HTML loading

Posted on 2009-04-15
5
335 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

Industry Leaders: 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!

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

697 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