views:

351

answers:

3

is that possible to load another page with jquery ui dialog ?

Like Dialog + Ajax

Thanks

+1  A: 

Sure, just include an iframe in your dialog's HTML.

Justin Ethier
+4  A: 

If you want to load content into a dialog using Ajax, you can easily use $.load:

// initialize dialog
var dialog1 = $("#dialog").dialog({ autoOpen: false,
  height: 600,
  width: 350
});

// load content and open dialog
dialog1.load('path/to/otherPage').dialog('open');

Check an example here.

CMS
thx, both way seem ok, but which one is better u think ?
Ahmet vardar
A: 

If you specifically need or want an iFrame instead of injected content into the dom, I have an extension for that here: http://plugins.jquery.com/project/jquery-framedialog

Tracker1