HN user

mmj

13 karma
Posts0
Comments11
View on HN
No posts found.

Being able to relate with the student.

For instance after I learn a language and am trying to teach someone else the language I just can't see why the person is having trouble learning a certain concept of the language. It all seems so simple to me since I've already learned this language and it's hard for me to be able to empathize with the learner.

jQuery 1.3 ßeta 18 years ago

http://www.json.org/json2.js

// In the third stage we use the eval function to compile the text into a

// JavaScript structure. The '{' operator is subject to a syntactic ambiguity

// in JavaScript: it can begin a block or an object literal. We wrap the text

// in parens to eliminate the ambiguity.

jQuery 1.3 ßeta 18 years ago

That is a pretty niche feature, I personally wouldn't do something like that.

Check out getResponseHeader() if you are so inclined.

As for the errors, there are many ways to check for "ajax" errors, for one thing you can check the status or statusText property.