Well..
Can you post your code in http://www.jsbin.com ?

----- Original Message ----- 
From: "Supertino" <[email protected]>
To: "jQuery UI" <[email protected]>
Sent: Thursday, July 09, 2009 9:11 AM
Subject: [jquery-ui] Re: dialog() is not a function



Thanks for your help.

Still doesn't works :(

(The "return false" doesn't works neither, I jump on the form action
script instead of stay on the same page)

The documentation on says this :

"A call to $(foo).dialog() initializes a dialog. If you want a click
to open a dialog, use $(foo).dialog('open'), but if the dialog hasn't
been destroyed, the $(foo).dialog() init call is only required once,
not on each click."
It's not very clear. Do I forgot to do something so ?

On 9 juil, 16:55, "Cesar Sanz" <[email protected]> wrote:
> I see your code is this:
> $("input#buyarticle").click( function(e) {
> e.preventDefault();
> $("#dialog").dialog("open");
>
> }
>
> try
>
> $("input#buyarticle").click( function(e) {
> $("#dialog").dialog("open");
> return false;
>
> }
> ----- Original Message -----
> From: "Supertino" <[email protected]>
> To: "jQuery UI" <[email protected]>
> Sent: Thursday, July 09, 2009 8:39 AM
> Subject: [jquery-ui] Re: dialog() is not a function
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to