On Dec 12, 2007 9:37 AM, <<a href="mailto:carl-olsen@mchsi.com">carl-olsen@mchsi.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would not use a framework for this unless I had other reasons for using a framework. I'm playing with symfony right now, but it will not run inside the CMS I have to integrate it with. I'm using the ORM part of symfony to create my PHP objects, which is definitely a big advantage.
<br><br>Carl<br></blockquote></div><br>Well, there are js only frameworks too. For <a href="http://Ubuntu.com">Ubuntu.com</a> I use mootools,
but jquery is similar (and more data focused, where moo is more
visual/effect focused). These libraries are relatively lightweight if
you don't include all the bells and whistles. They make loading json
(or whatever) extremely simple. Other benefits include simplifying your
usual JS code. In moo I do something like this to track external links:<br>
<br>
<pre>$$("a[href^='http://']").each(function(link) {<br> link.addEvent('click', [code to do onclick])<br>}<br></pre>
That gets all the "A" tags that have an href that matches the regex
^http:// and *adds* (not replaces) an onclick function to them.<br>
<br>
Ajax is as simple as:<br>
<pre id="line335">window.addEvent('domready', function() {<br>        xhr.request().chain(selectmirror);<br>})<br><br>var selectmirror = function () {<br> [deal with the json/xml]<br>}<br></pre>
However, learning the framework is a chore that you have to accomplish
in order to get the maximum benefit. So the upfront cost is high but
the payoff is long term.<br clear="all"><br>-- <br>Matthew Nuzum<br>newz2000 on freenode