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
I used the lastest Live Validation lib 1.3
But it still cannot work with remote_form_for…
and it’s also cannot work with a form which called by ajax.
Help!
On 2008Äê2ÔÂ13ÈÕ, ÏÂÎç10ʱ52·Ö, Alec H. [email protected]
Luca R. 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