I have a link in my page A which will bring user to page B. I want page B to pop up without affecting my page A, using jquery ui dialog like how window.open() function does (eg: <a href="" onclick="window.open('abc.php','', 'width=100, height=100, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false"> ABC </a>
I have this in page A:
<a href="abc.php">link to page B </a>
I have this in page B:
<script>
$(function() {
//$( "#dialog" ).dialog();
$( "dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog" ).dialog({
height: 500,
width: 740,
modal: true
});
});
</script>
<div id="dialog">
//code for form of page B
</div>
My problem is that the content is displayed inside the dialog box but it's not pop up window. The dialog just display on browser's window as dialog box. Basically, page A is replaced by page B. but i want page B to pop up when user click a link on page A.
Anyone know how to do? Thank a lot.
DIVas pop up not the whole page B.