Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in the html page in a div tag has onlclick...:
- onclick="<?php printTab()"?>
- in an javascript function collection
- function printTab()
- {
- ajax call-> phpFunction()
- target->"targetdiv"
- }
- phpFunction():
- {
- print '<div><script type="text/javascript">alert("vatafaka");</script></div>';
- }
- result html:
- ...
- <div id"targetdiv">
- <script type="text/javascript">alert("vatafaka");</script>
- </div>
- and this is not running after this procedure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement