Permission denied error in Javascript

  • Thread starter Tanmaya Kulkarni
  • 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top