Posted By

Piotrek290 on 09/12/09


Tagged

ajax javascript SoQ


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


SoQ Code - ajax module


 / Published in: JavaScript
 

  1. $.ajax = function(obj){
  2. if(obj){
  3. var url = obj.url;
  4. var complete = obj.complete;
  5. var loading = obj.loading;
  6. var parms = obj.parms;
  7. var type = obj.type;
  8. var ajaxObj = new Request; // zwraca obiekt request
  9.  
  10. if(ajaxObj){
  11. if(type.toUpperCase()=='POST'){
  12. console.log("Metoda POST");
  13. } else {
  14. console.log("Metoda GET");
  15. }
  16. }
  17. }
  18. };

Report this snippet  

You need to login to post a comment.