JS error in ie7 when use ajax source

JS error in ie7 when use ajax source

vlocker27vlocker27 Posts: 5Questions: 0Answers: 0
edited March 2009 in Bug reports
i got:

Line: 1663
Char: 4
Error: 'length' is null or not an object
Code: 0

i got the same error in both version 1.4.3 and 2 beta 6

please advice

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Hi vlocker27,

    Line 1663 in 1.4.3 is an opening bracket, while in 1.5 beta 6 it is a closing bracket. Do you have an example page which does the error?

    Thanks
    Allan
  • vlocker27vlocker27 Posts: 5Questions: 0Answers: 0
    the problem fixed itself. it was IE issue for caching ajaxsource

    thank you for reply so promptly and thank you for this wonderful scripts
  • NormNorm Posts: 1Questions: 0Answers: 0
    I'm using 1.5 B6 as well. Firefox accepts a trailing comma in the JSON string while IE7 complains about it and doesn't parse properly.
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Hi Norm,

    Good point! I find it very irritating that Firefox allows this. It's not a well formed object if it has a comma followed by an empty element. I would have thought that the Javascript compiler should really throw an error at this point.

    I find that jsonLint is exceptionally useful for helping to debug Ajax/Json errors: http://www.jsonlint.com/

    Allan
This discussion has been closed.