javascript permission denied to get property

W

Wilco

Hi,

I'm getting the message "javascript permission denied to get property"
on one of my sites.
I'm trying to do a 'getElementById' from an iFrame page. The iFrame is
trying to access information from the page that its loaded from.

The files are on the same server, so it can't be that.
It only occurs on one particular page.
This page is no different then any other page.

I've searched the newsgroup, but couldn't find a satisfying answer.
Can anybody help me out?
 
G

Gérard Talbot

Wilco wrote :
Hi,

I'm getting the message "javascript permission denied to get property"
on one of my sites.
I'm trying to do a 'getElementById' from an iFrame page. The iFrame is
trying to access information from the page that its loaded from.

Most likely it's the Cross-domain script security restrictions (aka
"Same Origin policy") imposed to your script trying to access a propertly.
The files are on the same server, so it can't be that.

Same server but it could be different domain names.

Read the last question of this FAQ:

http://developer.mozilla.org/en/docs/DOM:window.open#FAQ

Gérard
 
L

Lasse Reichstein Nielsen

Wilco said:
I'm getting the message "javascript permission denied to get property"
on one of my sites. ....
The files are on the same server, so it can't be that.

Is it also fetched from the same server *name*?
E.g., is the "www." absent on the page URL used to load one of the pages?

/L
 
T

Thomas 'PointedEars' Lahn

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,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top