I notice that dialog() works very well when I insert the code immediatly after $(document).ready().
But not when I place it into a click() or over() event.... I don't understand why, it's illogical... On 9 juil, 15:10, Supertino <[email protected]> wrote: > Hello, > > I presume that this question has been asked many times, but I don't > find any solution. > I've included these files : > > <script src="/js/jquery-1.3.2.js" type="text/javascript"></script> > <script src="/js/jquery-ui/ui.core.js" type="text/javascript"></ > script> > <script src="/js/jquery-ui/ui.resizable.js" type="text/javascript"></ > script> > <script src="/js/jquery-ui/ui.draggable.js" type="text/javascript"></ > script> > <script src="/js/jquery-ui/ui.dialog.js" type="text/javascript"></ > script> > <script src="/js/actualites/buyarticle.js" type="text/javascript"></ > script> > > In my buyarticle.js, I've got the following lines : > > $(document).ready( function() { > > $("input#buyarticle").click( function(e) { > e.preventDefault(); > $("#dialog").dialog("open"); > } > > } > > When I click on the button, I've got : > "$("#dialog").dialog is not a function" > > I don't know what files I've ommitted to include. > But when I call this function immediatly after the document.ready, it > works ! > > Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
