[jQuery] Re: rules section problem
Hello, removing rules from validate() and adding the line below outside of validate function fixed the issue: var validator = $(#myForm).validate(); validator.settings.rules = { rules... }; Mesut TUNGA On 31 Ocak, 13:27, TUNGA mesut.tu...@gmail.com wrote: 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, secondSentDocumentsTodependssection 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... 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
[jQuery] Re: rules section problem
Hello, removing rules from validate() and adding the line below outside of validate function fixed the issue: validator.settings.rules = { rules... }; Mesut TUNGA On 31 Ocak, 13:27, TUNGA mesut.tu...@gmail.com wrote: 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, secondSentDocumentsTodependssection 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... 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
[jQuery] Re: ajaxSubmit using validate and form plugin (succes option)
Hello, just try: submitHandler: function(form) { $.ajax({ type: 'POST', url: 'sendmail.php', data: $('#FormName').serialize(), success: function(responseText) { alert(responseText); } }); } Mesut TUNGA On 15 Ocak, 21:59, koenoe koenrom...@gmail.com wrote: Hi there! When I do an ajaxSubmit using the form plugin I don't get a response by using the succes option. I make an ajaxSubmit in thesubmitHandleroption from the validate plugin. Part of my code: submitHandler: function(form) { $(form).ajaxSubmit({ type: POST, clearForm: true, url: sendmail.php, succes: function(data) { alert(data); } }); return false; } I've tried a lot but without succes. I already tried this: - replacing $(form) with $(#idForm) - before the ajaxSubmit function a $(form).submit(function() { with a return false When I use this code it works sometimes but then I'm not able to add options to my ajaxSubmit function : $(form).ajaxSubmit(function(data) { alert(data); }); I hope someone can help me. Thanks in advance! Greetings, Koen
[jQuery] Re: [validate] rules section problem
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 : ?=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
[jQuery] Re: rules section problem
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
[jQuery] [validate] rules section problem
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. 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
[jQuery] [validate] filled on Mac bug
Hello, is there any one who has experience on mac (both safari and FF) this bug. none of rules are working: rules: { secondSentDocumentsTo: { // required: #aTextArea:filled required: function() { return $(#aTextArea).is(:filled) ? true: false; }, } } Thanks Mesut TUNGA
[jQuery] [validate]
Hello, is there any one who has experience on mac (both safari and FF) this bug. none of rules are working: rules: { secondSentDocumentsTo: { // required: #aTextArea:filled required: function() { return $(#aTextArea).is(:filled) ? true: false; }, } } Thanks Mesut TUNGA