This week's book giveaway is in the Python forum.
We're giving away four copies of High Performance Python for Data Analytics and have Tiago Rodrigues Antao on-line!
See this thread for details.
Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

generate "permission denied" javascript error

 
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use window.open to open a new window, it always generate "permission denied" javascript error. After I cancel that error box, I refresh that window, everything is good.

Do you have any solution ?

Thanks.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I google it. I find it related to Same origin policy, see this link.
http://msdn.microsoft.com/workshop/author/om/xframe_scripting_security.asp

But I am still not sure, say my url is
http://192.168.1.2:8080/myurl

Then what document.domain I should set ?
document.domain=192.168.1.2
or
document.domain=192.168.1.2:8080

Where should I set? I should set it in the main window or new window ?

Thanks.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That article talks about iframes. I am not sure that it's related to your problem. Have you checked your IE settings to see whether popups are allowed. I had run into a similar issue some time back and i remember, i had to do the following:

- Go to Tools-> Internet Options
- Click on Security tab
- Click on Custom level button
- In the Miscellaneous section click on "Enable" radio button under "Allow script initiated windows without size or position constraints"
- Click on OK. Click on OK again on the other window
- Open a new browser instance and access the application

This had worked in my case. Give it a try.
 
please buy my thing and then I'll have more money:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic