View Single Post
  #1 (permalink)  
Old September 10th, 2015, 02:33 PM
TheWildJacko TheWildJacko is offline
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Error in Ch. 14 example 1

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
Reply With Quote