Steve42
01-17-2012, 05:05 PM
The web page belows works OK in IE and FireFox on XP and Windows7
It does NOT work on IPAD using Safari.
Question: How can I delete the new window("IPADREPORT") when I run it the second, third,fourth, etc time ?
How can I get the window name( "IPADREPORT") to see if it exists?
SUggestions?
TIA,
Steve42
<code>
[aSafari.html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<script language="JavaScript" type="text/javascript">
function pReport(){
// 1-17-12 var menuWindow = open("","ipadreport");
// 1-17-12 menuWindow.close();
// above closes previous report window
var menuWindow = window.open('','ipadreport');// 1-17-12
document.ipadreport.submit();
menuWindow.focus();
}
</script>
<title>Ipad_PopUp_Test</title>
</head>
<body>
<br><br>
<form method=post name="ireport" target="ipadreport" action="http://myreport.asp">
<input type="hidden" name="reporttest" value="apple">
<a href='javascript:pReport()'> Create Report</a>
</form>
</body>
</html>
</code>
It does NOT work on IPAD using Safari.
Question: How can I delete the new window("IPADREPORT") when I run it the second, third,fourth, etc time ?
How can I get the window name( "IPADREPORT") to see if it exists?
SUggestions?
TIA,
Steve42
<code>
[aSafari.html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<script language="JavaScript" type="text/javascript">
function pReport(){
// 1-17-12 var menuWindow = open("","ipadreport");
// 1-17-12 menuWindow.close();
// above closes previous report window
var menuWindow = window.open('','ipadreport');// 1-17-12
document.ipadreport.submit();
menuWindow.focus();
}
</script>
<title>Ipad_PopUp_Test</title>
</head>
<body>
<br><br>
<form method=post name="ireport" target="ipadreport" action="http://myreport.asp">
<input type="hidden" name="reporttest" value="apple">
<a href='javascript:pReport()'> Create Report</a>
</form>
</body>
</html>
</code>