0

When I remove or comment out the alert statement it fails.

$(document).ready(function(){
     $('#div_db, #div_tables, #div_data, #div_nav').hide();  
     $("#div_db").load("generic_get_dbs.php"); 
     $('#div_db').show();
alert('line 5');    
       }); 
2
Contributors
2
Replies
27
Views
2 Years
Discussion Span
Last Post by Lonestar Jack
0

By "fails", what do you mean?

What comes to mind is the blocking nature of an alert(). It blocks execution while awaiting your click. Removing the alert would remove the block.

It's going fine here in a test. It hides the divs, loads a text file and shows the div regardless of the alert being present.

0

I solved the problem by moving different parts of the script to different files.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.