I am creating a form using Jquery-ui. Buttons are in parent page and codes are in another page, which is embeded into parent page through iframe. can anyone tell me how can I invoke dialog function of Jquery-ui from parent page's button.
$( "#comment" )
.button()
.click(function()
{ parent.I1.f1(); });
//I1 is the frame id here is a button
<button id="comment" name="comment">Comment</button>
This is on the parent page.
In another page(Iframe page)
function f1(){
$("#comment" ).dialog("open");
}
is defined details and code of dialog box is here
jqueryui.com/demos/dialog/modal-form.html