• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

JavaScript popUp interrupts HTML loading

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
teenashah
Asked:
teenashah
  • 2
  • 2
1 Solution
 
DimitrisSenior Solution ArchitectCommented:
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
 
teenashahAuthor Commented:
Hi,

Above issue has been resolved by own.
0
 
DimitrisSenior Solution ArchitectCommented:
Please inform us about the way you have resolve it
Just to know :)
0
 
teenashahAuthor Commented:
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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now