PDA

View Full Version : How Do I Debug Javascript Embedded Inside A PHP AJAX?


dealmaker
07-31-2005, 05:58 PM
Hi,
I am using Venkman javascript debugger. I am doing some AJAX coding. I have javascript inside a PHP file under the php code. The venkman debugger doesn't detect this piece of javascript code because it's not a .js file. I can't make it a seperate javascript file and put it right under the first .js in the html because the connection is async and I need to make this piece of javascript code to run only after the php code.

Well, I can always print out the variable using document.write, but if I can find out a way to debug this using a debugger, it will be much easier along the way.

Many thanks.