I'm trying to do some things in javascript with my internet project and am having some troubles (actually lots of troubles). First I'll explain the situation. My questions are at the bottom.
1. A user can click a button which opens a full screen window using the following script:
function BigPopUp(URL){
windowprops = "top=1,left=1,resizable=yes"
+ ",width=" + (screen.width - 12) + ",height=" + (screen.height- 60);
var casewindow = window.open(URL, "popupPage", windowprops);
}
2. That windows has 4 frames, one of which is named '_CaseRight' and has a button which opens a new window using the following script.
function getPerm() {
return window.confirm("Are you sure you want to finalize?\r\rClicking 'OK' will end your patient visit and submit your ranked differential diagnosis.");
//window.open('finalize.cfm','asdf','width=800,height=600');
}
The button is a form that looks like this:
<form action="finalize.cfm" method="post" target="_blank">
<input type="submit" onclick="return getPerm();" value="OLD Finalize Visit" >
</form>
Questions:
1. How can I get the finalize.cfm page to clear the big window that is named 'casewindow'. I've tried lots of stuff that doesn'w work... to much to name(and it would only show how dumb I am).
2. I could live without this, but it would also be nice if I could get the finalize.cfm page to open in the referrer page (the one that opened 'casewindow'). I haven't named that windows (the user opens it) so I wouldn't know where to begin.
Thanks in advance,
LNMEgo
1. A user can click a button which opens a full screen window using the following script:
function BigPopUp(URL){
windowprops = "top=1,left=1,resizable=yes"
+ ",width=" + (screen.width - 12) + ",height=" + (screen.height- 60);
var casewindow = window.open(URL, "popupPage", windowprops);
}
2. That windows has 4 frames, one of which is named '_CaseRight' and has a button which opens a new window using the following script.
function getPerm() {
return window.confirm("Are you sure you want to finalize?\r\rClicking 'OK' will end your patient visit and submit your ranked differential diagnosis.");
//window.open('finalize.cfm','asdf','width=800,height=600');
}
The button is a form that looks like this:
<form action="finalize.cfm" method="post" target="_blank">
<input type="submit" onclick="return getPerm();" value="OLD Finalize Visit" >
</form>
Questions:
1. How can I get the finalize.cfm page to clear the big window that is named 'casewindow'. I've tried lots of stuff that doesn'w work... to much to name(and it would only show how dumb I am).
2. I could live without this, but it would also be nice if I could get the finalize.cfm page to open in the referrer page (the one that opened 'casewindow'). I haven't named that windows (the user opens it) so I wouldn't know where to begin.
Thanks in advance,
LNMEgo