[Cialug] java web toolkits
Dave J. Hala Jr.
dave at 58ghz.net
Wed Dec 12 10:48:06 CST 2007
I could really make use of dynamic option list too, especially, if it
could read its options from a mysql table.
On Wed, 2007-12-12 at 10:44 -0600, David Champion wrote:
> Matthew Nuzum wrote:
> > On Dec 12, 2007 9:37 AM, <carl-olsen at mchsi.com> wrote:
> >
> >
> >> 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.
> >>
> >> Carl
> >>
> >>
> >
> > Well, there are js only frameworks too. For Ubuntu.com 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:
> >
> > $$("a[href^='http://']").each(function(link) {
> > link.addEvent('click', [code to do onclick])
> > }
> >
> > That gets all the "A" tags that have an href that matches the regex ^http://
> > and *adds* (not replaces) an onclick function to them.
> >
> > Ajax is as simple as:
> >
> > window.addEvent('domready', function() {
> > xhr.request().chain(selectmirror);
> > })
> >
> > var selectmirror = function () {
> > [deal with the json/xml]
> > }
> >
> > 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.
> >
> Is there some simple AJAX lib for Java that would be an equivalent of
> xajax for PHP? That's so stupid simple that even I can do it. It's not
> perfect, but it make adding AJAX to an existing PHP app very easy. The
> first thing I used it for was exactly what DW is wanting to do - a
> dynamic option list.
>
> -dc
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list