This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

jQueryUI - uncaught exception: cannot call methods

By: a guest on Feb 20th, 2012  |  syntax: None  |  size: 1.64 KB  |  views: 1,524  |  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. uncaught exception: cannot call methods on dialog prior to initialization; attempted to call method 'open'
  2.        
  3. $(function() {
  4. $( "#dialog" ).dialog({
  5.     autoOpen: false,
  6.     show: "blind",
  7.     hide: "explode"
  8. });
  9.  
  10. $( "#opener" ).live('click',function() {
  11.     $( "#dialog" ).dialog( "open" );
  12.     return false;
  13. });
  14. });
  15.        
  16. if ( isMethodCall ) {
  17. this.each(function() {
  18. var instance = $.data( this, name );
  19. if ( !instance ) {
  20. throw "cannot call methods on " + name + " prior to initialization; " +
  21. "attempted to call method '" + options + "'";
  22.                                     } ...
  23. ...
  24.        
  25. <div class="demo">
  26.  
  27. <div id="dialog" title="Basic dialog">
  28.     <p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
  29. </div>
  30.  
  31. <button id="opener">Open Dialog</button>
  32.  
  33. </div><!-- End demo -->
  34.        
  35. <script src='<%= Page.ResolveClientUrl("~/Admin/jsLib/jqueryAutocomplete/jquery.autocomplete.js") %>'  type="text/javascript"></script>
  36. <script src='<%= Page.ResolveClientUrl("~/Admin/jsLib/jqueryAutocomplete/lib/thickbox-compressed.js") %>' type="text/javascript"></script>
  37.        
  38. <script src='<%= Page.ResolveClientUrl("~/Admin/jscalender/jquery-ui.min.js") %>' type="text/javascript"></script>
  39.        
  40. <script src='<%= Page.ResolveClientUrl("~/Admin/jscalender/jquery-ui.min.js") %>' type="text/javascript"></script>
  41.        
  42. <script src='<%= Page.ResolveClientUrl("~/Admin/jsLib/jqueryAutocomplete/jquery.autocomplete.js") %>'  type="text/javascript"></script>
  43. <script src='<%= Page.ResolveClientUrl("~/Admin/jsLib/jqueryAutocomplete/lib/thickbox-compressed.js") %>' type="text/javascript"></script>
clone this paste RAW Paste Data