Advertisement
Guest User

jQueryUI - uncaught exception: cannot call methods

a guest
Feb 20th, 2012
1,677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement