See this thread for a couple of options:

http://groups.google.com/group/jquery-ui/browse_thread/thread/9c8fbe30a91396cc

- Richard

On Sat, Nov 15, 2008 at 10:03 AM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:

>
> Hello!
>
>
> How do I get rid of the close button in the right corner in an elegant
> way? I think if it is a modal layer it should not be closeable by
> default?!
>
> thank you for every hint.
>
> On 20 Sep., 03:46, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > Also, if you want to add a close button:
> >
> > $("#somediv").load(url).dialog({
> >   modal:true,
> >   buttons: {
> >     "Close": function() { $(this).dialog("close"); }
> >   }
> >
> > });
> >
> > And if you want to wait until the load finishes before creating the
> dialog:
> >
> > $("#somediv").load(url, function() {
> >   $(this).dialog({
> >     modal:true,
> >     buttons: {
> >       "Close": function() { $(this).dialog("close"); }
> >     }
> >   });
> >
> > })
> >
> > - Richard
> >
> > On Fri, Sep 19, 2008 at 10:38 PM, Jaime Ochoa Malagón <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> > > $("#somediv").load(url).dialog({modal:true});
> >
> > > On Fri, Sep 19, 2008 at 8:41 AM, Matt Wilson <[EMAIL PROTECTED]>
> wrote:
> >
> > > > I want to show my login form in a modal dialog when an anonymous user
> > > > tries to post a comment on my site.
> >
> > > > Ideally, I'd like to be able to load a page sort of like the $
> > > > ("somediv)".load function, except I want that div to behave like a
> > > > modal  div, where it sits on top of everything else, and has a close
> > > > button.
> >
> > > > Any ideas?
> >
> > > > Matt
> >
> > > --
> > > Perhaps the depth of love can be calibrated by the number of different
> > > selves that are actively involved in a given relationship.
> >
> > >        Carl Sagan (Contact)
> >
> > >        Jaime Ochoa Malagón
> > >        Arquitecto de Soluciones
> > >        Cel: +52 (55) 1021 0774
>
> >
>

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