In other words: Is it necessary to use an abstraction layer (similar to jQuery for UI) for communication via web services?
Best How To :
If this code works in Chrome, can I assume that it will also work in other major browsers
assuming you will be creating a
httpRequest object and the appropriate fallback for what ever browsers you are using, then you can presume that it will work across browsers, providing the appropriate fallback for the
httpRequest object are in place. check this out for a snippet of a cross browser request object, you'll see why people might use a lib (ie6 support if you must)
Is it necessary to use an abstraction layer (similar to jQuery for UI) for communication via web services
Depends, using jquery's
$.ajax method can save you some time but isnt required. however, if you are supporting a lot of legacy browsers then it might make sense to use a lib that has already done all the inconsistency work for you.
You certinly dont need anything as big as jquery though, check out reqwest and there is also micro.js1 which is a tool to select micro libs based on your needs (rather then a huge lib like jquery when you only want some of it's functionality.
N.B. if you are going to hit any cross browser issues, its more likly to be what you do with the web service response and how you handle/validate the data rathe then the request itself. read up on guard clauses and a js guard clause article here