Sorry Langdon, I tend to loose track of older topics when I am away
for a few days.
I just thought I would confirm what others have suggested.
I do not use behavior. I used to use it along with prototype but with
jquery it is not needed anymore.
I include a file I call behaviors.js which contain all the javascript
events I need for my application.
A short example might look line this:
$(function(){
// Document is ready
$('.filterDel a').click(filterDel);
$('.filterAdd a').click(filterAdd);
$('.field select').change(fieldChange);
$('#FilterEditForm').submit(filterFormProcess);
$('#MessageSaveFormSubmit').click(function(){
messageFormProcess();
$('#MessageSaveForm').submit();
return false;
});
});
This does pretty much what behavior used to do.
The "JQuery function" attaches these events when the time is right
(DOM is loaded)
Each event is pretty simple to read. A CSS selector and an event
attached to it.
As you can see I usually don't write my events inline. I prefer to
write them as functions. The advantage being that if I pdate of add an
element dynamically I can more easily apply the event without
duplicating the real code.
On Apr 4, 4:23 am, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
> Hi Martin
>
> > I do not use any helper for jquery, myself. Since all my javascript,
> > including ajax, is applied dynamically to css selectors I have no real
> > need for a helper.
>
> Do you use the Behaviour js library for this?
>
> http://www.bennolan.com/behaviour/
>
> Or something else?
>
> Regards,
> Langdon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---