![]() |
Call javascript (jquery) from iframe on parent? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Call javascript (jquery) from iframe on parent? (/showthread.php?tid=51363) |
Call javascript (jquery) from iframe on parent? - El Forum - 05-01-2012 [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? Call javascript (jquery) from iframe on parent? - El Forum - 05-01-2012 [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. Call javascript (jquery) from iframe on parent? - El Forum - 05-01-2012 [eluser]skunkbad[/eluser] I like the Sitepoint forum for js / jquery. Call javascript (jquery) from iframe on parent? - El Forum - 05-01-2012 [eluser]Stefan Hueg[/eluser] Its a security measure to not allow an iFrames-content to be manipulated in either direction. |