On a webpage I have some external content being pulled in with Javascript. When I look at the source code of the rendered page I see the actual javascript embedded in the HTML. Is there a method using PHP or some kind of output redirection so the actual content is embeded in the rendered web page, not the script itself? In other words if I view the page source I'd see the actual content output by the script in HTML format. but not see the script itself. Thx. Mike
I don't think there is an automatic method, like 1 line function code, but you could build something in php. It depends, how interactive that js script is and if it expects some client side parameters. In any case, depending on the js script, you could either rewrite javascript code to php code and omit js script completely or call the js script with php, gather its output it echo it as html together with page you are outputting. Personally, if the js script is not to complex i would go that road and rewrite it as php if possible.
Hi I am looking to place a java link on my faceparty profile How do i make a jave link to another url please Thanks