stef
08-06-2003, 02:33 PM
hi there!
i am calling this function, which i have embedded in html from flash:
/////////////////
<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
if (newwin != undefined) {
newwin.close();
}
setTimeout('',250);
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>
////////////////
it works just fine on the PC, but on a MAC no window appers :((
when i leave the following if-statement out (which i use to close the window before i open a new one, because i want only one window which changes its dimensions )
if (newwin != undefined) {
newwin.close();
}
a window appears, but it doesn't change the the height & width attributes which i pass in
from flash....
the code on the flash button is the following:
//////////////////
on (press) {
getURL ("javascript:launchwin('apps/panorama_pc.html', 'Z_Z','height=700, width=1014, menubar=0, scrollbars=0, status=0, toolbar=0, directories=0, fullscreen=0, sreenX=0, left=0, screenY=0, top=0');");
}
////////////////
any help on this GREATLY appreciated!!!!
best wishes
stef
i am calling this function, which i have embedded in html from flash:
/////////////////
<SCRIPT LANGUAGE="JavaScript"> var javascript_version = 1.0;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.1"> javascript_version = 1.1;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
var newwin;
function launchwin(winurl,winname,winfeatures)
{
if (newwin != undefined) {
newwin.close();
}
setTimeout('',250);
//This launches a new window and then
//focuses it if window.focus() is supported.
newwin = window.open(winurl,winname,winfeatures);
if(javascript_version > 1.0)
{
//delay a bit here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('newwin.focus();',250);
}
}
</SCRIPT>
////////////////
it works just fine on the PC, but on a MAC no window appers :((
when i leave the following if-statement out (which i use to close the window before i open a new one, because i want only one window which changes its dimensions )
if (newwin != undefined) {
newwin.close();
}
a window appears, but it doesn't change the the height & width attributes which i pass in
from flash....
the code on the flash button is the following:
//////////////////
on (press) {
getURL ("javascript:launchwin('apps/panorama_pc.html', 'Z_Z','height=700, width=1014, menubar=0, scrollbars=0, status=0, toolbar=0, directories=0, fullscreen=0, sreenX=0, left=0, screenY=0, top=0');");
}
////////////////
any help on this GREATLY appreciated!!!!
best wishes
stef