I'd need to see a complete testpage for further debugging.

Jörn

On Mon, Jan 5, 2009 at 3:43 PM, dedian <phil...@workx.at> wrote:

>
>
> Hi
>
> THX for ur fast reply.
>
> Tried to use the debug, like that:
>
> $("#detailform").livequery(function() {
>                $("#detailform").validate({
>                        debug: true,
>                         submitHandler: function(form) {
>                                jQuery(form).ajaxSubmit({
>                                        url:
>  'index.php?idcatside=33',
>                                    target:     '#contactformfield',
>                                    method:     'GET'
>                                        });
>                                        return false;
>                                }
>                        });
>                });
>
> It's still the same, the page just reloads.
> Maybe the whole design is wrong???
>
> What else can I try?
>
> Cheers
>
>
> Jörn Zaefferer-2 wrote:
> >
> > Try to set debug:true to prevent the default submit, that way you should
> > be
> > able to see any errors thrown.
> >
> > $("#form").validate({
> >   debug: true,
> >   ...
> > });
> >
> > Jörn
> >
> > On Mon, Jan 5, 2009 at 3:22 PM, dedian <phil...@workx.at> wrote:
> >
> >>
> >>
> >> Hi!
> >>
> >> THX for the Tipp!
> >>
> >> I changed my code and ended up with the following:
> >>
> >> $('#detailform').livequery(function() {
> >>                $("#detailcalc form").validate({
> >>                        submitHandler: function(form) {
> >>                                jQuery(form).ajaxSubmit({
> >>                                         url:
> >>  'index.php?idcatside=33',
> >>                                    target:     '#contactformfield',
> >>                                    method:     'GET'
> >>                                         });
> >>                                        return false;
> >>                                }
> >>                        });
> >>                });
> >>
> >> Whats happing now it that the page is reloading instead of fireing an
> >> ajaxSubmit().
> >>
> >> What can cause that?
> >>
> >> THX
> >>
> >>
> >> dedian wrote:
> >> >
> >> >
> >> > Hi
> >> >
> >> > I'm loading a form via load() and want to Validate it via Validate
> >> > Plugin and send it via ajaxForm()
> >> >
> >> > My Code looks like that:
> >> >
> >> > $('#detailform').livequery(function() {
> >> >               $("#detailform").validate();
> >> >             var options = {
> >> >                               url:
>  'index.php?idcatside=33',
> >> >                           target:     '#contactformfield',
> >> >                           method:     'GET',
> >> >                           success:    function() {  }
> >> >                       };
> >> >                       $('#detailform').ajaxForm(options);
> >> >                       return false;
> >> > });
> >> >
> >> > My problem is now that everything is working but the form is sent
> >> > immediatly, the script
> >> > doesn't wait for the validation.
> >> >
> >> > How can I change that?
> >> >
> >> > THX & cheers
> >> > Philipp
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/How-to-bind-ajaxForm---Vaildate-via-livequery-on-Form-which-was--loaded-via-load%28%29----tp21288622s27240p21291853.html
> >> Sent from the jQuery General Discussion mailing list archive at
> >> Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-bind-ajaxForm---Vaildate-via-livequery-on-Form-which-was--loaded-via-load%28%29----tp21288622s27240p21292199.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>

Reply via email to