The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Permission denied to access property 'document'.

2 posters

Go down

Permission denied to access property 'document'. Empty Permission denied to access property 'document'.

Post by idinafig August 22nd 2011, 8:47 am

Hello!
I'm trying to get some data from iframe. I used this code:
Code:
function wtf(iFrame){
    var linkedFrame = document.getElementById(iFrame);
    var content = linkedFrame.contentWindow.document.body.link.html2.value;
    alarm(content);
}
and this:
Code:
function wtf(iFrame){
var myIFrame = document.getElementById(iFrame).contentWindow.document;

var wholeIframeContetnt = myIFrame.body.innerHTML;

var someNode = myIFrame.getElementById("someid").innerHTML;

alarm(someNode);

}

Both of them returned an error:
Permission denied to access property 'document'.
Who can help me? Sad it's really needed for my forums...

I use mozilla Firefox 5.0.5
idinafig
idinafig
Forumember

Posts : 26
Reputation : 5
Language : English, Russian, Css, Html, Gml, Lisp, AS..... :)

http://wtforum.2x2forum.ru

Back to top Go down

Permission denied to access property 'document'. Empty Re: Permission denied to access property 'document'.

Post by kirk August 22nd 2011, 9:31 am

what is it telling you that when you submit the css to the sheet?

I need to see a screen shot.

And what are your trying to put in a iframe and where?
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Permission denied to access property 'document'. Empty Re: Permission denied to access property 'document'.

Post by idinafig August 22nd 2011, 9:39 am

what is it telling you that when you submit the css to the sheet?
It's javascript!!!!((((
And what are your trying to put in a iframe and where?
I need to gen only one (or more...) value from an element with known id in the iframe from different domain and use it.
I'm creating a page for image hosting, which automatically gives users required codes. My users are simple pupils and they can't find difference between code for forum and html code Smile

I'm using a hidden iframe for this and a form from my site.

Now I'm searching for such codes, but it's hacking 0:)
idinafig
idinafig
Forumember

Posts : 26
Reputation : 5
Language : English, Russian, Css, Html, Gml, Lisp, AS..... :)

http://wtforum.2x2forum.ru

Back to top Go down

Permission denied to access property 'document'. Empty Re: Permission denied to access property 'document'.

Post by kirk August 22nd 2011, 9:50 am

hacking?

well your barking up the wrong tree.
I dont like the sound of any of it. permissions denied!!!

Thread Locked
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum