Archive

Archive for the ‘AJAX’ Category

jQuery GET caching and you…

July 1st, 2009

I was working with jQuery today and I had an unusual issue.  Some users were getting incorrect data when using the app and others had no problem at all.  After checking the code and the queries I started looking at the app using Firebug, the best plugin ever.  After a few minutes of trial and error, I was still stumped.  I could not understand why only a few people were getting wild results.  Well, the final straw was when we changed the caching rules in the browser to automatically reload data and never load new versions of the page.  That was when I finally was able to reproduce the problem.

It turns out that ajax calls will cache your requests unless you append a different value at the end of each request.  You can also stop the cahcing if you use the jQuery post method instead of the get method.  I had no idea that ajax did that, but thanks to Ken Foubert’s blog post for clearing that up.

Lu Sancea AJAX

One hate topic to the next

July 26th, 2008

Well, I was going through the 600 RSS articles today and I came across a post by Tony Mobily titled: “Does anyone still develop Windows applications? Or, the programming world has gone online” Not only is the title bad grammar, it was a hate post on everything but AJAX.  There are plenty of companies out in the world developing Windows applications and to say that Java and Flash are on the downturn is just plain idiotic.  I would be open to debate the market share if there was an objective argument, but this dude is clearly not into any platform that you have to pay to develop in.  Yea, yea, I know that you don’t have to pay to work with Flex, but it’s so much easier to just grab the FlexBuilder IDE.  Anyway,  Tony seemed to have an agenda against all of the major engines out there in favor of AJAX.  Dont get me wrong I love AJAX like the next guy, but I am also a big proponent of Flex.  I couldn’t figure out if this guy was mistaking the visual effects that are packaged into most frameworks and actual AJAX.  At any rate, it was a similar post to all the many “ColdFusion is dead” and “PHP is greater than all!” posts on the web and that’s just lame.

Lu Sancea AJAX, Flex ,