I have a link in a dialog modal window. I need this link to show in the same DIALOG MODAL window where it is.
Here's how my link looks like, it is formed in a php file and then passed to the html template:
$link = "<a href='mypage.php?f=dosomething¶m1=".$var1."¶m2=".$var2."' id='dosomething' >Need to open this link in the same dialog window</a>";
And here's my jquery code:
$("#dosomething").dialog(
{ autoOpen:false,
modal:true,
overlay: { opacity: 0.8, background: "black" },
width:850,
height:650,
title:"A title",
draggable:true,
hide:"slow",
closeOnEscape: true
});
$("#dosomething").dialog("open");