How to create a dialog using jquery-ui without html div specified -
Using jquery-ui to make a dialog is very easy:
Lt; Script & gt; $ (Function () {$ ("#dialog") .dialog ();}); & Lt; / Script & gt; & Lt; Div id = "dialog" title = "basic dialog" & gt; & Lt; P & gt; This is the default dialog that is useful for displaying information. The dialog window can be moved, resized and closed with the 'X' icon. & Lt; / P & gt; & Lt; / Div & gt; ... but one still needs a div in HTML so that it can work in Dojo:
var dlg = new dijit Dialog ({title: "dialog", style: "width: 30%; height: 300px;"}); Dlg.show (); Can do the trick only without specifying in the HTML section, can jquery-ui do this? (I want to use jquery-ui here) Thanks,
David
While I'm not sure why you do not want to open a dialogue with any content, you can easily create a new one on the fly and open the jquery dialogue against it:
$ ( " Greetings .") Dialog ();
Comments
Post a Comment