Calling jqueryui dialog from iFrame
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link type="text/css" href="Library/css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script type="text/javascript" src="Library/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="Library/js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript">
function jQuery() {
$(this).parent("#Alert").dialog("open");
$("#Alert").parent().dialog("open");
}
</script>
</head>
<body>
<h1>
Hi! I'm on iFrame</h1>
<input type="button" id="Button1" value="Alert" onclick="jQuery()" />
</body>
</html>
Above is the html for iFrame only
main page contain
-
<div id="Alert" title="Error" style="display: none;"></div>
i try to call jqueryui dialog from parent after button1 click but the dialog didn't show. how to traverse properly?