ok here is what I found for whatever reason 'disable' event doesn't
seem to work so I used 'destroy' event
here is the jquery

        $(document).ready(function(){
                $("#dialog").dialog({
                bgiframe: true,
                modal: true,
                resizable: false,
                autoOpen: false,
                width:200,
                close: function() {
                $.cookie('doneDi', 'closed', { expires: 2 });
            },
                buttons: {
                    Ok: function() {
                        $.cookie('doneDi', 'closed', { expires: 2 });
                        $(this).dialog('close');
                    }
                }
            });
                $("#dbutton").click(function(){
                        if ($.cookie("doneDi") == "closed"){
                                $("#dialog").dialog('destroy');
                        }else{
                                $("#dialog").dialog('open');
                        }
                });
        });

let me know how this works out for you

Mean Mike


On Nov 3, 8:40 am, stefpretty <[email protected]> wrote:
> Anybody else maybe have a solution to my problem?
> sorry, running on a deadline.
>
> Thanks!
>
> Stefpretty
>
> On Nov 2, 8:36 pm, stefpretty <[email protected]> wrote:
>
> > Thanks I might try the code they have used if i can't get a solution
> > for this method first, also the cookies plugin was from jquery ui
> > website. I'm stubborn lol
>
> > Regards,
> > Stefpretty
>
> > On Nov 2, 7:20 pm, Scott Sauyet <[email protected]> wrote:
>
> > > On Mon, Nov 2, 2009 at 2:07 PM, stefpretty <[email protected]> wrote:
> > > > Hmm i like the thought behind this, unfortunately it wont work, i
> > > > checked the cookies in my computer and nothing is being stored!?
>
> > > This sounds more likely an issue with the cookie plug-in.
>
> > > Have you verified that you can use the cookies in a simpler scenario?
>
> > > I know that Remy Sharp'shttp://jsbin.com/doessomethingmuch like
> > > you're discussing, but it uses PPK's code rather than the cookie
> > > plug-in.  You might look at that code, though.
>
> > >   -- Scott

--

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