[jQuery] Re: [validate] rules section problem

2009-01-31 Thread TUNGA

Hi Jörn,

Thanks for your reply. Here is the sample:

http://nrzv.com/valid/

step 1 works well. on Step 2 there is a rule section like:

rules: {
secondSentDocumentsTo: {
required: { depends: 
"#secondPermanentAddress:filled" }

}
}

When you submit Step 1 and come on Step 2, even other validation(s)
works, secondSentDocumentsTo depends section does not work.

its working if you access the page via:
http://nrzv.com/valid/?s=2

Both of access type uses load() function to load pages


You can see the source via:

http://nrzv.com/valid/index.php
http://nrzv.com/valid/1.php
http://nrzv.com/valid/2.php

and the content of process.php is :



Thanks
Mesut TUNGA




On 28 Ocak, 20:56, Jörn Zaefferer 
wrote:
> Can't spot any issues in that snippets. Could you post a testpage?
>
> Jörn
>
> On Wed, Jan 28, 2009 at 6:22 PM, TUNGA  wrote:
>
> > Hello,
>
> > I use validation code someting below. It works if I load that page
> > directly. But loading it from another page using $("#myApplDiv").load
> > ('that_page.php') therulessections does not work. But submitHandler
> > section works well.
>
> > 
> > $().ready(function() {
> > // some codes here
> >                var validator = $("#myForm").bind("invalid-form.validate", 
> > function
> > () {
> >                        $("#summary").html("Error");
> >                }).validate({
> >                        submitHandler: function() {
> > // some codes here
> >                        },
>
> >                rules: {
> >                        fieldName {
> >                                required: { depends: 
> > "#anotherFieldName:checked" }
> >                        }
> >                }
> >                });
> > });
> > 
>
> > Any suggestions?
>
> > Thanks
> > Mesut TUNGA


[jQuery] Re: [validate] rules section problem

2009-01-28 Thread Jörn Zaefferer

Can't spot any issues in that snippets. Could you post a testpage?

Jörn

On Wed, Jan 28, 2009 at 6:22 PM, TUNGA  wrote:
>
> Hello,
>
> I use validation code someting below. It works if I load that page
> directly. But loading it from another page using $("#myApplDiv").load
> ('that_page.php') the rules sections does not work. But submitHandler
> section works well.
>
> 
> $().ready(function() {
> // some codes here
>var validator = $("#myForm").bind("invalid-form.validate", 
> function
> () {
>$("#summary").html("Error");
>}).validate({
>submitHandler: function() {
> // some codes here
>},
>
>rules: {
>fieldName {
>required: { depends: 
> "#anotherFieldName:checked" }
>}
>}
>});
> });
> 
>
> Any suggestions?
>
> Thanks
> Mesut TUNGA