[jQuery] Jquery, ajax and if-modified-since

2009-12-08 Thread Magnus O.
Hi! I can't get the if-modified-since header to work with jquery ajax. I tried to fet an xml like this: $.get("url", function(xml){ //Do something with response. }, "xml"); On these requests the if-modified-since is not set. Then I tried like this: $.ajax({ type:

[jQuery] Problems with Ajax and caching

2009-10-23 Thread Magnus O.
Hi! I'm creating a ajax call like this: jQuery.ajax({ url: "http://urltopage/?callback=callbackhandler";, dataType: "json", type: "GET", cache: true, callback: null, data: null }); I then have a callbackhandler function like this: function callbackhandler(data){ do something here } The respon

[jQuery] performance of jQuery.each

2009-04-24 Thread Magnus O.
Hi! I saw that the jQuery.each function iterates over the array like this: for ( name in object){} >From what I read this is one of the slowest ways of iterating over an array in js. I made a very simple test like: var array = [];