ajax and without ajax

Leave a comment

View the following link to usage of javascript and ajax for building a page .This can work under with or with out java script enabled

How to solve the IE 7 ajax caching (method:get)

Leave a comment

some times Internet Explorer cached the ajax requests and it creates problems .i used prototype library for a an ajax request .it works fine for firefox and opera.but creates problems with IE 7.then i add useless date value to query string for making the request unique .It solves my problem.and works fine .

the example code :

var date=new Date();

new Ajax.Request(‘sample.asp?id1=’+Current_Id+’&id3=<%=IdCategoria%>&id2=’+id2+ ‘&date=’+date.getTime(),
{
method:’get’,onSuccess: function(transport)
{

}

}