Re: New Ajax search component
| From: | Zoltán Németh | Date: | Wed, 09 Apr 2008 12:44:48 +0000 |
| Subject: | Re: New Ajax search component | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272782@lists.php.net to get a copy of this message | ||
Eric Butera írta:
On Wed, Apr 9, 2008 at 8:07 AM, Nathan Nobbe <quickshiftin@gmail.com> wrote: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émethOn Wed, Apr 9, 2008 at 7:50 AM, Eric Butera <eric.butera@gmail.com> wrote: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. ;)On Wed, Apr 9, 2008 at 2:34 AM, Jeremy O'Connor <joconnor@netactive.co.za> wrote:theOK, but my control only does the Ajax call when the user clicks the Go button, whereas the scriptaculous library does an Ajax call everytimeany 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. -nathanuser 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.