Quick solution to Ajax caching issue
By ranga | July 22, 2008
I got this quick fix solution to Ajax caching issue from the following site. Thought of sharing this.
http://radio.javaranch.com/pascarello/2005/10/21/1129908221072.html
The question: The Ajax request is grabbing the cached page from the previous request, how do I stop this from happening? Well I have seen some fancy approaches by people, but there is one easy solution that works: a random query string value appended to the request.
So how and why does this work. Well it simple terms, when the browser looks at the destination, if it has a match, then it uses the data it has. Now this is great for when you are going to a static website, but since we are looking for new data, it sucks. By appending a random value to our parameters that we are sending back, it forces the browser to say, “Stop the press! We got new info here! Lets go get the data!”
Topics: Tech Blog | No Comments »
HTML select onChange dropdown menu
By ranga | July 16, 2008
Topics: Tech Blog | No Comments »
Srirangapatnam and Mysore trip
By ranga | April 27, 2008
We went on a trip to the historical city and erstwhile capital of the Mysore residency Srirangapatna and Mysore last weekend. Being a history lover and an ardent fan of Tippu sultan I was able to visit the grave were he is put to rest. We went to Srirangaptna Sri Ranganatha temple for which Tippu sultan and Hyder Ali his father were patrons.
Topics: Friend's and Fun | No Comments »
My rotating banner pictures…
By ranga | April 26, 2008
Some of my friends got facinated by some of the banner pictures. But it shows up randomly and refreshes once a minute. Some cant wait to see all of them. They asked me to maintain a banner page.
So here they are.
Topics: General Thoughts | No Comments »
First mangoes of 2008
By ranga | April 24, 2008
The first batch of mangoes have arrived and I got my first batch yesterday. I have uploaded some for you viewing pleasure when I am enjoying it here.
Slurrrrpp. This variety of mango is called Alphonso.
Topics: General Thoughts | No Comments »

