Welcome Guest, Not a member yet? Register   Sign In
Call javascript (jquery) from iframe on parent?
#1

[eluser]Sven Delle[/eluser]
Struggling with fileupload, I'm trying to inject some javascript code into the iframe used for uploading a file.

I can send:
Code:
echo '[removed]alert("SUCCESS FROM IFRAME");[removed]';

to the iframe and have it work, but I can't send:

Code:
echo "[removed]$('#admin_content').html('HOORAY!!!');[removed]";

Now, is that security or something preventing this?
#2

[eluser]CroNiX[/eluser]
Sounds like a jQuery forum would be better for all of these questions you have lately, which don't have anything to do with CI.
#3

[eluser]skunkbad[/eluser]
I like the Sitepoint forum for js / jquery.
#4

[eluser]Stefan Hueg[/eluser]
Its a security measure to not allow an iFrames-content to be manipulated in either direction.




Theme © iAndrew 2016 - Forum software by © MyBB