Could any one help in this problem, is it possible, I would like to have a flash movie with five buttons to replace the html buttons in the following script, controlling the same actions..The framed html page would consist of two frames 'b' & 't', the Flash buttons in frame 'b' the results display in frame 't' ..been playing with the FScommands, but going backwards...FAST..hi
<script language="JavaScript1.2">
// Important variables to keep track of window states.
var browser=navigator.appName;
var appWin=null;
var winOpened = false;
var canOpen=true;
// Opens the applet window
function showApplet() {
if(winOpened) {
if(appWin.closed) canOpen=true;
else canOpen=false;
}
if(canOpen) {
if(browser=="Netscape" {
appWin=window.open('PApplet.jsp','newWindow2','WIDTH=468,HEIGHT=450')
}else {
appWin=window.open('PApplet.jsp','newWindow2','WIDTH=468,HEIGHT=440')
}
appWin.focus();
winOpened = true;
}
else {
if(!appWin.closed) appWin.focus();
}
}
function logout() {
if(!winOpened) {
top.location.replace("GLogout.jsp"
}
else {
if(!appWin.closed) {
appWin.close();
}
top.location.replace("GLogout.jsp"
}
}
</script>
<p>Dummy Page<br>
<a href="javascript:showApplet()">Make Call</a>
<a href="GDetails.jsp" target="main">Change User Details</a>
<a href="RCredits" target="main">Credit Details</a>
<a href="TFrame.jsp" target="main">T Card</a>
<a href="javascript:logout()">Exit</a></p>
Thanks in anticipation
John
<script language="JavaScript1.2">
// Important variables to keep track of window states.
var browser=navigator.appName;
var appWin=null;
var winOpened = false;
var canOpen=true;
// Opens the applet window
function showApplet() {
if(winOpened) {
if(appWin.closed) canOpen=true;
else canOpen=false;
}
if(canOpen) {
if(browser=="Netscape" {
appWin=window.open('PApplet.jsp','newWindow2','WIDTH=468,HEIGHT=450')
}else {
appWin=window.open('PApplet.jsp','newWindow2','WIDTH=468,HEIGHT=440')
}
appWin.focus();
winOpened = true;
}
else {
if(!appWin.closed) appWin.focus();
}
}
function logout() {
if(!winOpened) {
top.location.replace("GLogout.jsp"
}
else {
if(!appWin.closed) {
appWin.close();
}
top.location.replace("GLogout.jsp"
}
}
</script>
<p>Dummy Page<br>
<a href="javascript:showApplet()">Make Call</a>
<a href="GDetails.jsp" target="main">Change User Details</a>
<a href="RCredits" target="main">Credit Details</a>
<a href="TFrame.jsp" target="main">T Card</a>
<a href="javascript:logout()">Exit</a></p>
Thanks in anticipation
John