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="" STYLE="POSITION:relative; top:-5px; left:0px; width:100%; height:50px;" FRAMEBORDER="0" BORDER="0" SCROLLING="no" ></iframe>
<iframe name="contentview" id="contentView" src="" 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

Reply via email to