• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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