Errol Farro
asked on
jquery dialog popup
I have an html code called HTMLA with and HREF to HTMLB(<a href="HTMLB.html">See B</a>)
HTMLB contains a jquery dialog box as per the below)
My challenge is that when I press on the URL to show the dialog of HTMLB, HTMLA screen disappears and only dialog box of HTMLB is displayed.
How can I superimpose HTMLB on HTMLA? In other words, both HTMLA and HTMLB must be displayed (similar to opening HTMLB as a popup window)
HTMLA
<a href="HTMLB.html">See B</a>
HTMLB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Dialog - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui /1.11.4/th emes/smoot hness/jque ry-ui.css" >
<script src="//code.jquery.com/jqu ery-1.10.2 .js"></scr ipt>
<script src="//code.jquery.com/ui/ 1.11.4/jqu ery-ui.js" ></script>
<link rel="stylesheet" href="/resources/demos/sty le.css">
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
</head>
<body>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</body>
</html>
HTMLB contains a jquery dialog box as per the below)
My challenge is that when I press on the URL to show the dialog of HTMLB, HTMLA screen disappears and only dialog box of HTMLB is displayed.
How can I superimpose HTMLB on HTMLA? In other words, both HTMLA and HTMLB must be displayed (similar to opening HTMLB as a popup window)
HTMLA
<a href="HTMLB.html">See B</a>
HTMLB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Dialog - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui
<script src="//code.jquery.com/jqu
<script src="//code.jquery.com/ui/
<link rel="stylesheet" href="/resources/demos/sty
<script>
$(function() {
$( "#dialog" ).dialog();
});
</script>
</head>
<body>
<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>
</body>
</html>
ASKER
I really need HTMLA and HTMLB to be two separate files. They cannot be combined in one for technical reasons. Is this possible ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window
More examples here http://jqueryui.com/dialog/#default