XmlHttp: Error handling onReadyStateChange

328 views
Skip to first unread message

Hollenbeck, Dan

unread,
Dec 14, 2009, 2:39:57 PM12/14/09
to simile-...@googlegroups.com

Thanks for this great code!

 

Timeline code (both versions 2.3.0 and 2.3.1) generated the following error:

 

TypeError: C is null "XmlHttp: Error handling onReadyStateChange"

 

In my case it was being caused by a null date in the start field of the JSON event data.  Once I removed the null start date the error disappeared.

 

{"title":"abc","start":null}

 

I was not able to duplicate the error with a null end date.

 

By the way, changing the HTTP header content between any of the following did not make any difference to the error above:

 

header("Content-Type: text/html");                                      //default

header("Content-type: application/json");                          //use if sending json, but will not display as text in browser

header("Content-type: application/xml");                           //use if sending xml

header("Content-type: application/x-javascript");           //use if sending javascript

 

I am currently using the MIME header content-type for json of ‘application/json’ without any problems.

 

Thanks, Dan

Reply all
Reply to author
Forward
0 new messages