The element on which you call .dialog() is the content of the dialog itself.
So you can very easily replace the whole contents of the dialog by changing
the contents of that element. Say for example, you have a div with an id of
'myDiv'. So you make it a dialog:
$("#myDiv").dialog({ modal: true });
Now you want to replace the contents:
$("#myDiv").html("This is some new contents");
Or you can load a new page using Ajax:
$("#myDiv").load(url);
Neither of these are directly related to the dialog itself, as it sits as a
simple wrapper around this content div.
- Richard
On Wed, Aug 5, 2009 at 11:12 AM, adexcube <[email protected]> wrote:
>
> Hi, I'm using a dialog to generate a modal window, how can I reuse my
> current modal window to display a different page? I'll display a
> series of next and back pages.
>
> Thanks
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---