ajax echo returns javascript code!
Posted
by
StevanSteve
on Stack Overflow
See other posts from Stack Overflow
or by StevanSteve
Published on 2011-01-07T16:31:42Z
Indexed on
2011/01/07
16:53 UTC
Read the original article
Hit count: 152
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?
© Stack Overflow or respective owner