Luca Roma wrote:> form_remote_tag(:update => "ListDateDiv", :url=> { :action
=>
> ''new_date''},:complete =>
"onEventDateInsered()",:html=>{:multipart =>
> true,:class=>''FormNewEdit''})
>
> I have an ajax form with some fields.
> Ex.
>
> var place_site_v = new LiveValidation(''place_site'',
> {insertAfterWhatNode: "PlaceSiteValidatorReport" ,validMessage:
> "",onlyOnBlur: true});
> place_site_v.add(Validate.Format, { pattern:
>
/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/i,
> failureMessage: "Indirizzo sbagliato! Es. http://nerto.it" });
>
> In this fields if i use LiveValidation the attribure onsubmit of form is
> override form LiveValidation and ajax not works.
>
> How i can do?
>
> Thanks
Hi Luca,
The new release of LiveValidation is on its way soon, which has had an
overhaul on the events registration which now means that any previously
defined events on those that LiveValidation hooks onto will be
preserved (ie when using form_remote_tag and observe_field etc)
I have tagged a stable beta version in the repository at:
svn://livevalidation.com/livevalidation/tags/1.3-beta
which you can grab and should solve your problem, and should just slot
in without any modifications to your code.
Let me know if you encounter any problems if you decide to give it a try
Thanks
Alec
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---