Re: New Ajax search component

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Butera írta:
On Wed, Apr 9, 2008 at 8:07 AM, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:
On Wed, Apr 9, 2008 at 7:50 AM, Eric Butera <eric.butera@xxxxxxxxx> wrote:


On Wed, Apr 9, 2008 at 2:34 AM, Jeremy O'Connor

<joconnor@xxxxxxxxxxxxxxx> wrote:

 OK, but my control only does the Ajax call when the user clicks the Go
 button, whereas the scriptaculous library does an Ajax call everytime
the
 user presses a key.
Any library should be flexible enough to register event listeners on
whatever trigger needed.  The event itself isn't as important as how
things are handled.

I use YUI because it lets me focus on my work instead of browser
quirks.  It is a little heavier but that is okay because they have a
team dedicated to testing all the A grade browsers so I don't have to.
any js lib worth mentioning these days fits that description and prototype /
scriptaculous is no exception.  i wish it were modular, so i didnt have to
send the whole damn library out to the browser on every request, when i
might just need a few classes.  whats more, although scriptaculous does
provide some ui components and controls out-of-the-box, they dont appear to
have nearly the gamut of extJs..
 one of the things thats great about prototype is that they sort of map
javascripts oo model to something of the paradigm that php has; primarily
inheritance.  i believe extJs errs more on the 'you need to understand js'
side of things.

-nathan



I figured as much.

The YUI stuff is all very split up into defined modules such as DOM,
Event, Connection, etc.  Of course they all seem to depend on each
other, so I end up sending like 8 files over the wire.  I create a
single file to stitch them together though, gzip it, and send it with
a far future expire header.  So in the end it really isn't the worst
thing.

I used prototype before but I was upset with my requests getting out
of order when I was doing stuff.  Then there is lots of talk about how
it doesn't play nice with other scripts.  The YUI stuff is all
namespaced out.  I also had compatibility issues with prototype using
opera.  But that was years ago and I'm sure everything is fine now,
but I've already left. ;)


I use prototype together with some parts of YUI, some parts of ExtJS, TinyMCE, and a bunch of my own scripts, and there is no interference between them. And it all seems to work on the latest opera.

greets,
Zoltán Németh

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux