• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting access is denied exception on IE

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting "access is denied" exception when executing resizeTo and moveTo java script functions. I am using IE 6.0 SP1 on XP SP1 with all latest updates.

Steps to recraete this problem.
1. Open this page on IE.
2. Scroll down (Using scroll bar) and select/highlight last "Place content here" text.
3. Scroll up (Using scroll bar) and refresh the page. It will throw "Access it Denied" eception which will be captured by sample program and display message "Access is Denied Exception".

Here is the my sample html page.
<HTML>
<HEAD>
<TITLE>Test1.html</TITLE>
</HEAD>
<BODY>
<P>Place content here. <br/><br/><br/><br/><br/><br/></P>
<P>Place content here.<br/><br/><br/><br/><br/><br/><br/></P>
<P>Place content here.<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/></P>
<P>Place content here. <br/><br/><br/><br/><br/><br/></P>
<P>Place content here.</P>
<BR>
<Script language="JavaScript">
function positionView(){
try{
window.moveBy(0, 0)
window.resizeTo(500,500);
}catch(exeption){
alert("Access is Denied Exception");
}
}
positionView()
</Script>
</BODY>
</HTML>

I tried to set focus(onbeforeunload event) on different area on page but still getting same exception on resizeTo and moveTo. Please help me.

Thanks for your help

Deepak
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't you want moveTo and not moveBy?
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic