I did a small test - This works in top level page but not in iframe:
LzBrowser.loadJS('window.open("./about.html", "",
"scrollbars=no,titlebar=no,width=725 ,height=420 ,top=80 ,left=67")');

The code Manik is trying to call in the top level html page isn't really
doing anything much more complicated than that.   We'll take a look at
switching to just embedding the two swf's in div's on the top level page and
hopefully that should allow our floating windows to still work.   

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Not Zippy
Sent: Tuesday, July 25, 2006 8:29 AM
To: Manik Prabhu
Cc: [email protected]
Subject: Re: [Laszlo-user] Problem with loadJS( ) in IE, Please help

Generally ie's security model for javascript is tighter then mozilla's.
Specifically with framed pages

Use embed tags to embed the flash object on the page, not an iframe, then
calling the script should work. The only issue is that the requests are all
made relative to the page that embeds the flash object...

Alternatelly you can try tweaking the code to do the following:
LzBrowser.loadJS('openInfoDialog("./help.html", 725, 420)', 'top') ; or
LzBrowser.loadJS('parent.openInfoDialog("./help.html", 725, 420)') ;

Although I doubt wether it will make a diff to ie


z


On 7/25/06, Manik Prabhu <[EMAIL PROTECTED]> wrote:
>
>
> Hye Everyone,
>
> I am facing problems while using loadJS( ) in IE,  but able to work 
> fine with Firefox.
>
> I have a index.html something like this, i have two iframes, each one 
> holds a .lzx file and i have a javascript function.
>
> <html>
> ....
> <script type="text/javascript">
> function openInfoDialog(sURL, width, height){ var xMax = 640, 
> yMax=480; var xOffset = xMax/6, yOffset = yMax/6; var sParams = 
> 'scrollbars=no,titlebar=no,width='+ width + ',height=' + height + 
> ',top=' + yOffset + ',left=' + xOffset; window.open(sURL, "", 
> sParams); } </script> <body> <iframe name="headerframe" id="headerid" 
> src="./lzx/header.lzx?lzt=swf"
> STYLE="POSITION:relative; top:-5px; left:0px; width:100%; height:50px;"
> FRAMEBORDER="0" BORDER="0" SCROLLING="no" ></iframe> <iframe 
> name="contentview" id="contentView" src="./lzx/welcome.lzx?lzt=swf"
> STYLE="POSITION:relative;
> background-color:rgb(221,221,221); top:-5px; left:0px; width:100%; 
> height:630px;" FRAMEBORDER="0" BORDER="0" SCROLLING="no"
> ></iframe>
> </body>
> <html>
>
> My first file header.lzx contains a link( basically a text label). My 
> requirement is when the user clicks on the link, a window should pop 
> up with the specified URL (url of .lzx file), height and width 
> parameters. For this i am calling  a javascript function of index.html
from header.lzx file.
>
> My text label code in the header.lzx looks like this:
>
> <text text="help">
>
> <method event="onclick">
>
> LzBrowser.loadJS('top.openInfoDialog("./help.html", 725, 420)');
>
> </method>
>
> </text>
>
> I am able to see the expected results in Firefox, not so in Internet 
> Explorer.
>
> I am getting the The following error...in IE
>
>  Permission Denied error at Line 1 Char 1 of 
> 'top.openInfoDialog("./help.html", 725, 420)');
>
>
>
> and also tried to open window directly on onclick( ) event
>
> <method event="onclick">
>
> var str =
> ('window.open("./help.html","About","fullscreen=no,toolbar=no,status=n
> o,menubar=no,scrollbars=no,width=350,height=250,left=100,top=50")');
> LzBrowser.loadJS(str);
>
> </method>
>
> Correctly working in firefox, but not in IE.
>
> Please Help me, I need it work both in IE and Firefox.
>
> Thanks in Advance
>
> Manik
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>
>
>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to