I set up Apache and wrote Ch. 14 example 1 correctly, doubled checked httprequest.
js and example 1 against the source code downloads, and they're all correct. However, when I try to validate the name or email fields I get this error:
[Error] SyntaxError: JSON Parse error: Unrecognized token '<'
parse (ch14_example1.html, line 102)
handleResponse (ch14_example1.html, line 102)
reqReadyStateChange (httprequest.
js, line 9)
And then when I expand the error I get this:
"<br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /Users/jakesmolowe/Sites/ch14_formvalidator.php:1) in <b>/Users/jakesmolowe/Sites/ch14_formvalidator.php</b> on line <b>7</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent by (output started at /Users/jakesmolowe/Sites/ch14_formvalidator.php:1) in <b>/Users/jakesmolowe/Sites/ch14_formvalidator.php</b> on line <b>8</b><br /> {"available":false,"searchTerm":"jmcpeak"}"
What's going on?
Thanks,
Jake