39
rated 0 times
[
44]
[
5]
/ answers: 1 / hits: 32128
/ 11 Years ago, wed, october 9, 2013, 12:00:00
On my web page I have a jQuery UI Dialog. When I click the button (create new user) it opens a new window. My question is how can I open that window with an AJAX request?
It would be nice to open the dialog-form from another page. For example: dialog.html
<div id=dialog-form title=Create new user>
<p class=validateTips>All form fields are required.</p>
<form>
<fieldset>
<label for=name>Name</label>
<input type=text name=name id=name class=text ui-widget-content ui-corner-all />
<label for=email>Email</label>
<input type=text name=email id=email value= class=text ui-widget-content ui-corner-all />
<label for=password>Password</label>
<input type=password name=password id=password value= class=text ui-widget-content ui-corner-all />
</fieldset>
</form>
</div>
You can see full code in this fiddle:
More From » jquery