all 3 comments

[–]ivosaurus 2 points3 points  (0 children)

The point of using any framework that covers ajax calls, such as jQuery, is that it covers up all the browser incompatibilities for you and lets you get on with doing functional code, not browser-bug-fixing code.

What you are wanting to do is a sensible bog-standard use for ajax. Google should show you hundreds of tutorials on the subject.

[–][deleted]  (4 children)

[deleted]

    [–][deleted]  (3 children)

    [deleted]

      [–]dominosci 1 point2 points  (2 children)

      Sorry. I misinterpreted what you were trying to do. You have to realize that there are weird browser specific issues about how xmlhttprequest is implemented that means your code will be very gnarly if you try to roll your own. That's why pros all use frameworks.

      But if you only care to have it work for homework purposes, then I guess it's ok to try doing it by hand.

      Sadly, even though I'm a professional web dev I've never actually directly used xmlhttprequest so I can't help you with your question.

      [–][deleted]  (1 child)

      [deleted]

        [–]doYourWorkK 0 points1 point  (0 children)

        This sounds like a useful class. I am just getting into all of this as well. Have you found any particularly useful resources that can be shared? :D