Thoughts on a Javascript Library Integration with Code Igniter
November 27th, 2006
For reasons I'll disclose in the near future, I've recently been convinced that Scriptaculous, despite my thoughts on its "bloat", is in fact the best library for me to focus in on if I'm going to integrate it with Code Igniter. I'm currently committed to a project that I'm just finishing off that I've been developing using Mootools, but when its done any work I do in this area will probably be on Scriptaculous integration. I'll release the mootools library when I'm done of course!
Right now it is pretty limited, but it does support ajax nicely.
$this->load->library('mootools');
$this->mootools->update(controller/function', 'postbody=content', 'update_div', 'trigger');
$data['extraHeadContent'] = $this->mootools->load();
I like Jquery... a lot. Mootools and Jquery both suffer from a fatal flaw - They are basically 1 man projects right now. If Valerio got offered a million bucks to go work at Yahoo, do you think he would continue development of Moo, or work with YUI? I'm not saying that these aren't technically wonderful projects, they both are, but that Scriptaculous has behind it the kind of momentum right now that if Thomas Fuchs were to stop active development of it, it would continue unabated. So from a "business" sense, it offers something that these new breed of libraries can't yet offer. Maturity.
The only other framework that comes to mind to also meet this is Dojo, with its corporate support of IBM.
Again, let me be clear. I'm not saying that from a coding and quality perspective that these libraries aren't good - they are. But if I were a corporate client, I'd want Code Igniter to use the most widely-used, well-tested, mature javascript library possible. So since my desire is to build a library for CI with the widest possible appeal, I'll probably pursue Scriptaculous if I have time to develop this.
This entry was made on November 27th, 2006 @ 8:21 and filed into CodeIgniter, Javascript.

Matthew Pennell wrote on November 27th, 2006 @ 3:41
I think jQuery is getting close to that point too - the community is pretty strong, so even if John Resig was hit by a bus tomorrow I don’t think development would stop. Personally I prefer it to Prototype+Scriptaculous, mainly just for the filesize .