Permission denied error in Javascript

  • Thread starter Thread starter Tanmaya Kulkarni
  • Start date Start date
T

Tanmaya Kulkarni

Hi,



I my web application, am using frames.



<frameset name="aaframe" rows="190px,64.0%,45px" >
<frame name="aframe" language="vb" src="../Top_page.aspx"
frameBorder="0" noResize scrolling="no">
<frameset name="bframe" cols="25%,75%">
<frame name="rleft" src="../Aspx/Left_page.aspx">
<frame name="rright" src="../Aspx/Right_Page.aspx">
</frameset>
<frame name="cframe" language="vb" src="../bottom_page.htm"
frameBorder="0" noResize scrolling="no">
</frameset>



Now, in Right Page when user presses on a button called "FullScreen", I
change percentage of aaframe rows to "0%, * ,0%" by following code.



function showFullScreen()

{

if (document.Form1.Image_FullScreen.title ==
"Switch to Full Screen")

{

parent.aaframe.rows = "0%,*,0%";

parent.bframe.cols = "25%,75%";

document.Form1.Image_FullScreen.title="Switch
to Normal Screen";

document.Form1.Image_FullScreen.src="normalscreen.jpg"

}

else

{

parent.aaframe.rows =
"190px,64.0%,45px";

parent.bframe.cols = "25%,75%";

document.Form1.Image_FullScreen.title="Switch
to Full Screen";

document.Form1.Image_FullScreen.src="fullscreen.jpg"

}

}



This maximises my page. The code works fine when the page loads for the
first time.

When the page reloads after some click event, I get a javascript error
"Permission Denied".



Can anyone hlpe me out whats the issue?



Thanks,

Tanmaya
 
Tanmaya:

I'd love to help you with your problem but Javascript isn't my strength.
Hopefully someone here can answer your question, but you may want to try
microsoft.public.dotnet.framework.aspnet simply b/c a lot more people there
are Javascript wizzes.

I'll try to take a look at it and see if I can be of help though.
 
Back
Top