Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 8 May 2008 07:43:01 -0700,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


IE shows "Permission denied" JavaScript error on "top.location.hre   
This is strange:

When I open some intranet pages in IE6, the following code generates a 
"Permission denied" JavaScript runtime error:

someVar = top.location.href;

Here's the strange part: After I'm asked to debug and after I've selected 
"No", if I now hit Refresh (<F5>), the same page loads fine!

Can someone please enlighten me on what causes this error?

I have created another web page where I get this same kind of strange error. 
Here I tried to workaround this problem by creating a dummy page being 
redirected to the problematic page (using IIS Redirection 3.2). By entering 
the dummy page's address into IE6 (and then being redirected to the second 
page), everything works fine as well.

I don't get it......

Any help is quite appreciated.

TIA,
Axel Dahmen
date: Thu, 8 May 2008 07:43:01 -0700   author:   Axel Dahmen am

Re: IE shows "Permission denied" JavaScript error on "top.location.hre   
"Axel Dahmen" <keentoknow@newsgroup.nospam> wrote in message
news:153FC787-274E-49D3-92ED-C62D1F4A6BC8@microsoft.com...
> This is strange:
>
> When I open some intranet pages in IE6, the following code generates a
> "Permission denied" JavaScript runtime error:
>
> someVar = top.location.href;
>
> Here's the strange part: After I'm asked to debug and after I've selected
> "No", if I now hit Refresh (<F5>), the same page loads fine!
>
> Can someone please enlighten me on what causes this error?
>
> I have created another web page where I get this same kind of strange
error.
> Here I tried to workaround this problem by creating a dummy page being
> redirected to the problematic page (using IIS Redirection 3.2). By
entering
> the dummy page's address into IE6 (and then being redirected to the second
> page), everything works fine as well.
>
> I don't get it......
>


This will be cross domain scripting problem.  The code excuting the script
is running in the context of one domain whilst the page being displayed by
the the top window is from another domain.

-- 
Anthony Jones - MVP ASP/ASP.NET
date: Fri, 23 May 2008 09:07:41 +0100   author:   Anthony Jones

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us