Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jQuery modal dialog does not stop for user input
  2. var $confirm = $('#confirm');
  3. $confirm.dialog(
  4. {
  5.     autoOpen:false,
  6.     width:440,
  7.     modal:true,
  8.     buttons:
  9.     {
  10.         OK: function()
  11.         {
  12.             $( this ).dialog( 'close' );
  13.         },
  14.         Cancel: function()
  15.         {
  16.             $( this ).dialog( 'close' );
  17.         }
  18.     }
  19. });
  20.        
  21. [ some javascript that does error checking]
  22. alert('stop1');
  23. $('#confirm').dialog('open');
  24. alert('stop2');
  25. [ more javascript including submitting the form]