Quick and simple example of a select box and the on change event: 
http://www.danvega.org/blog/index.cfm/2008/7/1/jQuery-Select-Example

And another that’s more involved: 
http://www.filamentgroup.com/lab/progressive_enhancement_convert_select_box_to_accessible_jquery_ui_slider/

 

In the first example – the last listing at line 11 – just put in your own code 
to do the specific function.

 

 

 

From: [email protected] [mailto:[email protected]] On 
Behalf Of Sid Ferreira
Sent: 03 May 2009 23:42
To: [email protected]
Subject: [symfony-users] Re: Symfony and JS - prototype or jquery?

 

IMHO Prototype is way better.
I've started with sf 1.0 and many tasks I feel much more simple with prototype.

For example: I need 5 minutes to make a select box update a partial, and with 
jquery so far I failed.


btw: if anyone want to help me, I really wanna learn too use jQuery too :D

On Sun, May 3, 2009 at 12:52, David Ashwood <[email protected]> 
wrote:


Stick with one or the other - while jQuery and Prototype can be made to work
together - they both want the $ prototype and you can end up with conflicts
if you don't put jQuery into compat mode and change/use all jQuery usage to
use jQuery rather than $.

Most jQuery plugins are safe - so it's mostly your own code you need to
worry about.

imho jQuery is better - it's lighter and more flexible.

There's a jQueryReloaded plugin that should help with its use in Symfony.

I was thinking about writing something that implements a better wrapper to
JS libs - allowing the same helper usage in your code but by making the JS
libs pluggable - so you wouldn't have to change your php code based on the
JS lib  you wanted to use.


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Steve the Canuck
Sent: 03 May 2009 17:45
To: symfony users
Subject: [symfony-users] Symfony and JS - prototype or jquery?


Hi,

I started using jquery in my app because it was used in some of the
tutorials that were pertinent to me.  But now I'm coming across other
functionality that is supported by prototype instead.  So I seem to
either have to use both (which sounds like it might put a pretty big
JS footprint in my code), or I will have to port code to work with
which framework I choose.  Does anyone have recommendations on how to
approach this?

Thanks,
Steve







-- 
Sidney G B Ferreira
Desenvolvedor Web




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to