I’m talking about the Javascript Framework war! Will it ever end. Well, I sure hope not.
I hope it never ends because I want there to always be competition so the frameworks continue to adapt and become better!
Case in point…. Yesterday I was asked to go and work on a client’s site. In their site they were using the Framework Prototype. They were specifically using the Ajax.Updater function to bring in a feed to their home page. Needless to say it wasn’t working in all browsers.
This is the code used :
new Ajax.Updater(’placeholder’, url, { method: ‘get’, parameters: par });
It took me a few minutes to figure out what was wrong. I had to dig through the Prototype Framework and also some resources I had.
It appears that the way it is used, it will not work flawlessly in all browsers. ( This is a concern here at Solid Cactus! ).
I began researching more and more and the only way I could get that concept to work in all browsers was to use jQuery’s version of it.
This is the code used:
$(’#placeholder’).load(url + par);
hmm…. seems much simpler doesn’t it? Well not only is this simpler, it works in all browsers.
So, even though I’m not dead set on a specific framework, I think it really pays to look around!
Posted by Tim Whitacre on Oct 31, 2008
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.