Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-25-2004, 04:53 PM   #1
mrtz
Registered User
 
Join Date: Aug 2004
Posts: 1
Default problems with pop up from flash with explorer

hi. i have the following code in my flash mx file:

getURL("javascript:OpenWindow('http://www.url.com/file.htm','', '949', '659','-1','-1','false','false','')");

and the following javascript function (OpenWindow) in the html file:

<script language="javascript">

function OpenWindow(strURL, strName, intWidth, intHeight, intTop, intLeft, IsScrollbar, IsResizeAble, WindowTitle)
{
intTop = -1;
intLeft = -1;

if (intTop ==- 1)
{
//Get values for centering the window
var x = screen.availWidth;
var y = screen.availHeight;
if(x > intWidth)
{
intLeft = (x-intWidth)/2;
}
if(y > intHeight)
{
intTop = (y-intHeight)/2-30;

}
}

var AddOption;
var strOptions;
var strResizeString = "";
if (IsResizeAble == true)
{
strResizeString = "yes";
}
else
{
strResizeString = "no";
}

if(IsScrollbar == true) {
strOptions = "scrollbars,toolbar=no,location=no,directories=no, status=no,menubar=no,resizable=" + strResizeString + ",copyhistory=no,height=" + intHeight + ",width=" + intWidth + ",left=" + intLeft + ",top=" + intTop;
}
else {
strOptions = "toolbar=no,location=no,directories=no,status=no,m enubar=no,resizable=" + strResizeString + ",copyhistory=no,height=" + intHeight + ",width=" + intWidth + ",left=" + intLeft + ",top=" + intTop;
}

//alert(strOptions);

mywin = window.open(strURL,strName,strOptions);
/*
if (WindowTitle != "")
{
if (WindowTitle.length > 0)
{
mywin.document.title = WindowTitle;
}
}
*/
mywin.focus();
}
</script>

then i wrote:

<param name="allowScriptAccess" value="always" />
<param name="swliveaccess" value="YES" />

same in the embed src tag)


the problem is: it works with ie. safari on mac but it does not work with explorer on pc: no pop up window opens.

what could be the problem?
mrtz is offline   Reply With Quote
Old 08-25-2004, 05:54 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

are you getting any javascript errors in ie/pc?... do a search in the forums... lots of threads that may help you out here.
__________________
tg
---
what the hell was i thinking?

Last edited by tg; 08-25-2004 at 05:56 PM..
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.