• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call javascript (jquery) from iframe on parent?

[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:
echo '[removed]alert("SUCCESS FROM IFRAME");[removed]';

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

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

Now, is that security or something preventing this?

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.

I like the Sitepoint forum for js / jquery.

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.