The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Permission denied to access property 'document'.

Go down

Permission denied to access property 'document'.

Post by idinafig on 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
avatar
idinafig
Forumember

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

http://wtforum.2x2forum.ru

Back to top Go down

Re: Permission denied to access property 'document'.

Post by kirk on 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?
avatar
kirk
Forumaster

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

Back to top Go down

Re: Permission denied to access property 'document'.

Post by idinafig on 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:)
avatar
idinafig
Forumember

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

http://wtforum.2x2forum.ru

Back to top Go down

Re: Permission denied to access property 'document'.

Post by kirk on 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
avatar
kirk
Forumaster

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

Back to top Go down

Back to top


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