> now i have another question is there in getJSON some thing like the > beforeSend function in $.ajax ??? > > or schoult i manage my calls through the $.ajax(options) call with the > dataType "json" ?? > > what are your opinions > > thanks for your replies
If you are getting the JSON data from a different domain (via jsonp) then no, there is no beforeSend callback. If you are getting it from the same domain then getJSON actually uses $.ajax under the hood so all the same rules apply.