Hi I have Mixed Code php + javascript Inside php file . I called the code inside this file by ajax . Example of the php code echo "<script type='text/javascript'> alert('Hello') </script>"; PHP: The problem is that PHP code is executed, but the JavaScript code is not executed . Is there a solution for the implementation the two codes PHP + JS using ajax request
Hi. here is how to do it: http://stackoverflow.com/questions/510779/calling-javascript-function-returned-from-ajax-response