Hi Richard,
ah, now I got it. I thought .dialog() was an "instant" function that
could just display "a dialog". But it seems it's not only "displaying
a dialog", but "creating a dialog". It works fine now, thanks!
Best regards
Arne
On Nov 19, 1:54 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> Are you trying to open it again by clicking on the link a second time? The
> element should only be initialized as a dialog once (via .dialog(options) ).
> If you want to open it again after it's closed, call .dialog("open")
>
> - Richard
>
> On Wed, Nov 19, 2008 at 7:22 AM, Arne-Kolja Bachstein <[EMAIL
> PROTECTED]>wrote:
>
>
>
> > Hi Richard,
>
> > here's my full code. Hope it works with pasting it all.
> > --- SNIP ---
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
> > <head>
> > <title>akb web services</title>
> > <link rel="stylesheet" href="theme/jquery-ui-themeroller.css"
> > type="text/css" media="screen" title="jQuery UI">
> > <script type="text/javascript" src="jquery.min.js"></script>
> > <script type="text/javascript" src="jquery.ui.packed.js"></script>
> > <script type="text/javascript">
>
> > $(document).ready( function() {
>
> > $("#dialoglink").click( function() {
>
> > $("#dialogcontent").dialog({
> > resizable:false,
> > draggable:false,
> > height:500,
> > width:500,
> > minWidth:500,
> > minHeight:500,
> > modal:true,
> > overlay: {
> > opacity: 0.5,
> > background: "black"
> > },
> > buttons: {
> > "Ok": function() {
> > alert("Ok");
> > },
> > "Cancel": function() {
> > $(this).dialog("close");
> > }
> > }
> > });
>
> > });
>
> > });
>
> > </script>
>
> > </head>
> > <body>
>
> > <div id="wrapper">
> > <a href="#" id="dialoglink">Dialog</a>
> > <div style="display:none;"><div id="dialogcontent" title="This is my
> > title">This is dialog content</div></div>
> > </div>
>
> > </body>
> > </html>
> > --- SNAP ---
> > On Nov 19, 12:19 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> > > Could you share some code? What you describe sounds like it should work.
>
> > > - Richard
>
> > > On Wed, Nov 19, 2008 at 5:43 AM, Arne-Kolja Bachstein <[EMAIL PROTECTED]
> > >wrote:
>
> > > > Hi there,
>
> > > > I am looking into UI dialog right now but am stuck with the problem,
> > > > that each time I close a dialog it won't open again. I think that is
> > > > because the dialog destroys the shown div then, but how can I handle
> > > > this in a different way?
>
> > > > Kind regards
>
> > > > Arne
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---