P.S. : http://nrzv.com/valid/?s=2
loads $("#myApplDiv").load("2.php"); into the index.php On 31 Ocak, 13:22, TUNGA <mesut.tu...@gmail.com> wrote: > 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.phphttp://nrzv.com/valid/1.phphttp://nrzv.com/valid/2.php > > and the content of process.php is : > > <?=print "$(\"#myApplDiv\").load(\"2.php\"); ";?> > > Thanks > Mesut TUNGA > > On 28 Ocak, 20:56, Jörn Zaefferer <joern.zaeffe...@googlemail.com> > 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 <mesut.tu...@gmail.com> 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. > > > > <script> > > > $().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" } > > > } > > > } > > > }); > > > }); > > > </script> > > > > Any suggestions? > > > > Thanks > > > Mesut TUNGA