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=no,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

Reply via email to