Hi Supertino, please checkout the source of :

http://jsbin.com/uvace

AND 

http://jsbin.com/usuhe

first example with caching the $(foo).dialog(bar)...

second example without. 


Supertino wrote:
> 
> 
> Hello,
> 
> I presume that this question has been asked many times, but I don't
> find any solution.
> I've included these files :
> 
> [...]
> 
> 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.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dialog%28%29-is-not-a-function-tp24410153s27240p24411118.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
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