lol, I didn't see the second example on http://jsbin.com/usuhe
But what I did is -exactly- the same! and it didn't work..

Otherwise I've got another problem. I've made a modal box.

my jquery.custom.css place the title and the content of the modal box
outside of it.
see there : http://jsbin.com/oyise/, I made like the documentation
(http://jqueryui.com/demos/dialog/#modal-confirmation)

On jsbin, the title appears well, but not the content.

On 9 juil, 17:28, "[email protected]" <[email protected]> wrote:
> i just gave it a try,
>
> by the way: there are 2 examples, the first one shows how you possible
> could save some (cpu) time by saving the reference to the dialog
> inside a global var, the second one showing you how dialog works
> without saving the ref.
>
> the important thing is:
> i initialized the dialog _before_ i open it inside the event handler!
>
> best regards,
>
> On Jul 9, 5:21 pm, Supertino <[email protected]> wrote:
>
> > yes !
> > Thank you very much, you saved me. I lost the afternoon to resolve
> > this -_-
>
> > So, If I understand well, the dialog must be initialized before then
> > stored in a variable, and we have to execute the methods on this
> > object to make it appears.
>
> > Thank you again !
>
> > On 9 juil, 17:15, foyb <[email protected]> wrote:
>
> > > 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-tp24410153s27240...
> > > 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