ajax echo returns javascript code!
- by StevanSteve
Hi,
i have an ajax call. Php page (A) called by ajax requires some other php page (B). Page "B" is php file looking something like this
<html>
<head> javascript code </head>
<body> PHP Code </body>
Inside of "head" tags is javascript code. Now, Page "A" includes page "B", but instead of expected result, it echoes pure javascript code from included page "B"!
How to prevent that?