[jQuery] Re: Validation plugin: combine functions with strings on remote error

2009-03-24 Thread Andy Matthews
Subject: [jQuery] Re: Validation plugin: combine functions with strings on remote error Passing a function as a message happens all the time when using $.format(... {0}) as messages. The function is expected to return the formated message, so you can just return the string value you want to display

[jQuery] Re: Validation plugin: combine functions with strings on remote error

2009-03-24 Thread Andy Matthews
...@googlegroups.com] On Behalf Of Jörn Zaefferer Sent: Monday, March 23, 2009 5:34 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Validation plugin: combine functions with strings on remote error Passing a function as a message happens all the time when using $.format(... {0

[jQuery] Re: Validation plugin: combine functions with strings on remote error

2009-03-24 Thread Jörn Zaefferer
: Monday, March 23, 2009 5:34 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Validation plugin: combine functions with strings on remote error Passing a function as a message happens all the time when using $.format(... {0}) as messages. The function is expected to return the formated

[jQuery] Re: Validation plugin: combine functions with strings on remote error

2009-03-24 Thread Andy Matthews
Man, you thought of everything. Thank you. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Jörn Zaefferer Sent: Tuesday, March 24, 2009 10:42 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Validation plugin: combine functions

[jQuery] Re: Validation plugin: combine functions with strings on remote error

2009-03-23 Thread Jörn Zaefferer
Passing a function as a message happens all the time when using $.format(... {0}) as messages. The function is expected to return the formated message, so you can just return the string value you want to display at the end of your function. Jörn On Mon, Mar 23, 2009 at 10:39 PM, Andy Matthews

[jQuery] Re: Validation: How to get group key that the current invalidate element belong to?

2009-03-21 Thread Jörn Zaefferer
The groups-option is processed by the plugin and added to the validator object. So inside your errorPlacement-method you should be able to use this.groups[element[0].name] to get the group for that element, if any. Jörn On Fri, Mar 20, 2009 at 4:32 PM, doutu ami...@gmail.com wrote: If this

[jQuery] Re: Validation and Tabs plugins compatibility

2009-03-20 Thread Jörn Zaefferer
I've released an update to the validation plugin, including a demo showing integration with jQuery UI tabs: http://jquery.bassistance.de/validate/demo/tabs Jörn On Tue, Jul 8, 2008 at 10:56 PM, peace4theapes peace4thea...@gmail.com wrote: Diego, Thanks for the reply. I tried this idea but

[jQuery] Re: Validation and Facebox

2009-03-18 Thread byron
In case anyone else stumbles upon this, I will give my solution to the problem (hours later, of course). So the issue is that Facebox is using the clone() method to move the DOM elements around in $.facebox.fillFaceboxFromHref. Now a fix that worked on some of my pages was to simply using the

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-25 Thread kevinm
Jörn , New issue, that is related. When I use form.submit() inside the modal window it does not submit correctly. When we did this (before applying validate) function submitForm() { document.myform.submit(); parent.$.nyroModalRemove(); // this closes the modal window

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-25 Thread kevinm
Ah ignore. Team member left of method attribute. On Feb 25, 9:07 am, kevinm sonicd...@gmail.com wrote: Jörn , New issue, that is related. When I use form.submit() inside the modal window it does not submit correctly. When we did this (before applying validate) function submitForm() {  

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-24 Thread kevinm
James, We just ran into the same issue. In my case we are opening a modal window with nyroModal. Here is the validate function. var myValidate = $(#myform).validate({ ignoreTitle: true, focusCleanup: false, ignoreTitle:

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-24 Thread Jörn Zaefferer
$(form).submit() triggers another round of validation, resulting in another call to submitHandler, and voila, recursion. Replace that with form.submit(), which triggers the native submit event instead and not the validation. Jörn On Tue, Feb 24, 2009 at 4:58 PM, kevinm sonicd...@gmail.com wrote:

[jQuery] Re: validation rules(remove) doesn't seem to work

2009-02-24 Thread Bob O
Im a little new to the plugin myself, but do you have a form id=myFormwrapping your inputs? On Feb 24, 10:34 am, kathb4 kat...@googlemail.com wrote: I am trying to use the validation plugin to validate a set of checkboxes which are created by my CMS (drupal) so are not changeable - and

[jQuery] Re: validation rules(remove) doesn't seem to work

2009-02-24 Thread kathb4
Actually I think it is working - I h=just wasn't removing the lable withthe onclick thanks On Feb 24, 5:34 pm, kathb4 kat...@googlemail.com wrote: I am trying to use the validation plugin to validate a set of checkboxes which are created by my CMS (drupal) so are not changeable - and which

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-24 Thread kevinm
Ah, makes total sense. Thanks On Feb 24, 1:01 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: $(form).submit() triggers another round of validation, resulting in another call to submitHandler, and voila,recursion. Replace that with form.submit(), which triggers the native submit

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-24 Thread Jörn Zaefferer
Here's hoping the next one finds this: http://docs.jquery.com/Plugins/Validation#Too_much_recursion Jörn On Tue, Feb 24, 2009 at 7:01 PM, kevinm sonicd...@gmail.com wrote: Ah, makes total sense. Thanks On Feb 24, 1:01 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote:

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread Jörn Zaefferer
Nope, simply doesn't exist yet. For other options, you can just add them at runtime: var validator = $(...).validate(); validator.settings.onfocus = ...; Though in this case, the groups-option is preprocessed when initializing the plugin, so just updating validator.settings.groups isn't enough.

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread Raymond Camden
Should I file an enhancement report for it? On Feb 22, 3:32 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Nope, simply doesn't exist yet. For other options, you can just add them at runtime: var validator = $(...).validate(); validator.settings.onfocus = ...; Though in this

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread Jörn Zaefferer
Yes, preferably with a little usecase description. Helps providing appropiate examples. Jörn On Sun, Feb 22, 2009 at 11:02 PM, Raymond Camden rcam...@gmail.com wrote: Should I file an enhancement report for it? On Feb 22, 3:32 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote:

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread Raymond Camden
Ticket #4213 http://dev.jquery.com/ticket/4213 On Feb 22, 4:06 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Yes, preferably with a little usecase description. Helps providing appropiate examples. Jörn On Sun, Feb 22, 2009 at 11:02 PM, Raymond Camden rcam...@gmail.com wrote:

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread brado32003
I've made $109 on this free sportsbetting site, and my friend currently has over $200!... You start with 10 cents and when you get to $20 you can cash out or keep going! Check it out... http://www.centsports.com/?opcode=289473 Raymond Camden rcam...@gmail.com wrote: Ticket

[jQuery] Re: Validation - Creating groups on the fly

2009-02-22 Thread neha toor
visit here for all free stuff and check out our other free sites. http://tinyurl.com/d2t3sh http://tinyurl.com/aej94c http://tinyurl.com/c7khum http://tinyurl.com/aznmhq http://tinyurl.com/bempdf Pastikan Supervisor Anda hadir dalam workshop ini !! Introduction Dalam konteks struktur organisasi

[jQuery] Re: Validation with example plugin

2009-02-20 Thread Jörn Zaefferer
Consider using a watermark plugin that uses labels positioned over the input instead of one that modifies the actual input. They are in the overlabel category, see http://jqueryui.pbwiki.com/Watermark for a list of watermark/overlabel plugins. Jörn On Fri, Feb 20, 2009 at 2:45 AM, marc0047

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread James
Make sure you have the latest version of the validation plug-in also (1.5.1 as of this time). On Feb 19, 6:22 am, winstonc wins...@3cinc.net wrote: Hi, Trying to upgrade from Version 1.2.6 to  1.3/1.3.1, but my validation stopped working. Here's my working code:  script

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread winstonc
Thanks James that fixed it. Next problem that the latest version of the plugin executes the onsubmit when the validation fails. When the validation fails I get an empty window with: form name=healthbeat id=healthbeat action=edit_process_buttons.cfm method=post enctype=multipart/ form-data

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread James
I think you should remove that onsubmit attribute on the form. What is that suppose to be used for? When you submit a form, and it validates successfully, it'll open a new window and display the next page on there? On Feb 19, 8:54 am, winstonc wins...@3cinc.net wrote: Thanks James that fixed

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread winstonc
When it validates successfully it opens a small window and displays Saved if the SAVE button is selected. I also open the small window and make it larger to preview the page. The actual form never goes to a next page, it's used to update, preview and email a newsletter. It works correctly with

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread James
Validation has a submitHandler option that you can define to callback when the form is valid. You should put your window.open in there. And then change the 'target' of your form to point to the name of that opened window. That way when the form does not validate, the window will not open. On Feb

[jQuery] Re: Validation problem with versions 1.3 and 1.3.1

2009-02-19 Thread James
Validation has a submitHandler option that you can define to callback when the form is valid. You should put your window.open in there. And then change the 'target' of your form to point to the name of that opened window. That way when the form does not validate, the window will not open. On Feb

[jQuery] Re: Validation with example plugin

2009-02-19 Thread marc0047
Bump. I'm having the same issue as well. Anyone one with any good hints or links? On Jan 27, 5:22 am, iDan d...@dmgtech.co.uk wrote: Hi, I'm using the validation plugin which is really cool but I'm also using it along side theexampleplugin (http://mucur.name/system/ jquery_example/). My

[jQuery] Re: Validation Plugin: How to submit invalid form via JavaScript

2009-02-18 Thread Michael Lawson
If you're trying to submit the form even if it doesn't validate...then why validate in the first place? i'm confused cheers Michael Lawson Content Tools Developer, Global Solutions, ibm.com Phone: 1-919-517-1568 Tieline: 255-1568 E-mail: mjlaw...@us.ibm.com 'Examine my teachings critically,

[jQuery] Re: Validation - Adding Valid class

2009-02-13 Thread RobG
On Feb 14, 8:42 am, Jon cakeordeat...@gmail.com wrote: With the validation i have managed to make it add a class called 'Valid' to the label that the validation adds. However i want to make it add a class (same name) to the textbox too. I've managed this by doing:     success:

[jQuery] Re: Validation - Adding Valid class

2009-02-13 Thread Jon
Thanks Rob but i'm not sure i fully understand. Do i do this within the success function? Or is there somewhere else i can do this like say: invalid: function(element) { $(element).parent(span).children(input, textarea).removeClass (Valid) } That's where i'm confused - where exactly do you

[jQuery] Re: validation with jquery 1.3

2009-02-11 Thread goldy
oh, ye, stupid error my bad On Feb 10, 12:38 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: There is no maxlenght method, its maxlength. Jörn On Tue, Feb 10, 2009 at 10:51 AM, goldy zlati.pehliva...@gmail.com wrote: Hei there seems validation works only if all the fields are not

[jQuery] Re: validation with jquery 1.3

2009-02-10 Thread goldy
Hei there seems validation works only if all the fields are not filled. if i fill one of the required fields the validation passes and submit the form. $.validator.setDefaults({ submitHandler: function() { alert(submitted!); } }); $().ready(function() {

[jQuery] Re: validation with jquery 1.3

2009-02-10 Thread Jörn Zaefferer
There is no maxlenght method, its maxlength. Jörn On Tue, Feb 10, 2009 at 10:51 AM, goldy zlati.pehliva...@gmail.com wrote: Hei there seems validation works only if all the fields are not filled. if i fill one of the required fields the validation passes and submit the form.

[jQuery] Re: [validation] How to pop current rules for given input and how to set them back?

2009-02-10 Thread Jörn Zaefferer
That code you wrote should work just fine. Just try it! See also http://docs.jquery.com/Plugins/Validation/rules On Tue, Feb 10, 2009 at 9:32 AM, stej cerna.ze...@seznam.cz wrote: In some cases I need not to validate some fields. E.g. If I check some checkbox new inputs with further options

[jQuery] Re: validation remote

2009-02-08 Thread Kris
Another figure out the solution for this? I am having a similar problem. Thanks guys, Kris On Dec 15 2008, 4:17 am, Jet webones...@hotmail.com wrote: Hi, Sounds like we are having the same problem. I have posted about the problem in this thread.

[jQuery] Re: validation remote

2009-02-08 Thread Jörn Zaefferer
This is probably a bug that occurs only in combination of error containers and the remote methods. I'll look into it. Jörn On Sun, Feb 8, 2009 at 6:07 PM, Kris k...@kriskhoury.com wrote: Another figure out the solution for this? I am having a similar problem. Thanks guys, Kris On Dec 15

[jQuery] Re: Validation Plugin: Too Much Recursion

2009-02-08 Thread James
Since you can't show any code, with only what I see there should not be any issues... That is, there is no issue with using two validate functions on two different forms, each with it's own set of rules. You're going to have to show more code for us to get to down to the issue. On Feb 8, 5:54 

[jQuery] Re: validation plugin: validate checkboxes that don't have same name?

2009-02-06 Thread jQuery Lover
You can add custom rule with your custom validator. Read documentation here: http://docs.jquery.com/Plugins/Validation Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Fri, Feb 6, 2009 at 7:22 AM, claudes claudina.sar...@gmail.com wrote: using validation plugin, is

[jQuery] Re: Validation Plugin

2009-02-05 Thread tres
You can with my form validation plugin. http://shugartweb.com/jquery/form There is an option that you can pass called 'ignore'. It is a selector for all fields that should be ignored in validation. By default it is ':hidden', but you can put anything in there such as ':hidden, [value=default

[jQuery] Re: validation plugin and ui tabs

2009-02-04 Thread Caldur
Well, you can have as many form elements as you want on a page, but you can only have one form runat=server element per page. Not sure if that will help you any. On Feb 3, 6:12 pm, varun khatri.vk1...@gmail.com wrote: Hi Everybody I am trying to use validation plugin with ui tbas. suppose I

[jQuery] Re: validation plugin and ui tabs

2009-02-04 Thread tres
Varun, I've actually solved a problem like this for the company that I work for. I have 5 tabs, all located within 1 form. I also had to label the tabs that had errors and focus the first one that had errors. This is simply unachievable without a bit of hacking with the .validate() plugin. Don't

[jQuery] Re: validation plugin and ui tabs

2009-02-04 Thread tres
It is being used and is stable in an enterprise environment so I shouldn't say alpha. The only reason I said that was because I do want to do a lot more work to it and the api might change. Trey On Feb 5, 9:42 am, tres treshug...@gmail.com wrote: Varun, I've actually solved a problem like

[jQuery] Re: validation plugin and ui tabs

2009-02-04 Thread Varun Khatri
I was checking it on the link that you sent me , so do you think I need it to have form tag seperately in each tab ... and then use it or I can just use aspnetForm... The problem is how in each tab i will have different validation ... Like tab1 will have textbox1 and submitbutton1...tab2 will

[jQuery] Re: validation with jquery 1.3

2009-02-02 Thread andré
thanks i use an old version thanks for your help. On 30 jan, 19:24, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Have you updated to 1.5.1?http://bassistance.de/2009/01/14/releases-jquery-13-and-validation-pl... Jörn On Fri, Jan 30, 2009 at 5:17 PM, andré l...@chrom.fr wrote:

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
I think you can put three validators on the fields, with jQuery.validator.addMethod. I don't know if you can add multiple validators for the same CSS class, so I'm putting extra CSS classes on the inputs: input id=firstName class=first-name-input name-input/ input id=lastName class=last-name

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
There was a small typo in validateLastNameInput. Here's the corrected code. input id=firstName class=first-name-input name-input/ input id=lastName class=last-name input name-input/ jQuery.validator.addMethod('first-name-input', validateFirstNameInput, 'First name is missing.');

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
Sorry, the third validator must only get activated if both are empty (in other words, it must return true if either is not empty): function validateNameInputs(value, element) { return firstNameInput.value || lastNameInput.value; } On Jan 30, 11:19 am, Mihai Danila virid...@gmail.com wrote:

[jQuery] Re: validation with jquery 1.3

2009-01-30 Thread Jörn Zaefferer
Have you updated to 1.5.1? http://bassistance.de/2009/01/14/releases-jquery-13-and-validation-plugin-151/ Jörn On Fri, Jan 30, 2009 at 5:17 PM, andré l...@chrom.fr wrote: Hello, Thanks for your fabulous validation form. But I 've a problem.When I use jquery 1.2.6, my form works well on IE,

[jQuery] Re: Validation Plugin: additional-methods.js

2009-01-23 Thread Jörn Zaefferer
Thanks Steve! Fixed and commited: http://code.google.com/p/jqueryjs/source/detail?r=6159 Jörn On Fri, Jan 23, 2009 at 4:44 AM, Steve Blades cutte...@gmail.com wrote: Thanks again to Jorn for a fantastic plugin. One thing I noticed, with the additional-methods.js file that is included with the

[jQuery] Re: Validation: Validating 2 password fields (Enter and Re-Enter passwords)

2009-01-16 Thread jvh
Never mind. I did not see the equalTo function. On Jan 16, 4:20 pm, jvh jhabbou...@gmail.com wrote: Hello, I am using JQuery validation to validate a password field (among things).  I have 2 fields: The Enter Password field where the user enters his password and a Re-Enter Password field

[jQuery] Re: Validation: Which and why...

2009-01-08 Thread Jörn Zaefferer
I've updated the Goals section a bit: http://docs.jquery.com/Plugins/Validation/Reference#Goals Jörn On Wed, Jan 7, 2009 at 11:24 PM, Tristan Burch m...@tristanburch.com wrote: It seems like a good idea to to both. That way if the user does have JavaScript disabled, there is still validation

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Will Anderson
I choose to validate from PHP because of a couple things. 1. It's more secure because nobody can see my PHP code, but they can see my jQuery code. 2. If the user has JavaScript disabled, or for some other reason the jQuery is unable to validate the code, it will still be validated. On the other

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Nikola
Thanks for the info, I was thinking along the same lines but wasn't altogether sure.

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Cam Spiers
I like to implement all my validation logic server side and to make it more userfriendly I like to ajax my forms and send the validation errors back as json. I know this might not be the prefered method for some but it means you only have to write your validation code in one language. (because as

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Dave Methvin
I am wondering what the relative advantages / disadvantages are of validating purely in php vs. in jQuery. Neither is a replacement for the other, so using both is the best solution. Client-side validation with jQuery lets you give the user feedback without requiring a page reload. That tends

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Nikola
Great information, I have some very strong ideas of when and how I'll impliment jQuery and php validation now. Thanks much, Nikola

[jQuery] Re: Validation: Which and why...

2009-01-07 Thread Tristan Burch
It seems like a good idea to to both. That way if the user does have JavaScript disabled, there is still validation on the server side. On Wed, Jan 7, 2009 at 1:47 PM, Will Anderson javayaht...@gmail.com wrote: I choose to validate from PHP because of a couple things. 1. It's more secure

[jQuery] Re: validation plugin negative number rule?

2008-12-20 Thread Jörn Zaefferer
Use min: 0. Jörn On Fri, Dec 19, 2008 at 8:02 PM, Adam apcau...@gmail.com wrote: How can I create a rule in the validation plugin to disallow negative numbers. I have a text field that should accept any number 0 thanks, A.

[jQuery] Re: validation plugin: don't insert error element

2008-12-16 Thread Jörn Zaefferer
Try this: showErrors: function() {} Jörn On Tue, Dec 16, 2008 at 5:45 AM, Sean Allen s...@monkeysnatchbanana.com wrote: Is there a way to instruct the validation plugin to not insert any error element?

[jQuery] Re: validation remote

2008-12-15 Thread Jet
Hi, Sounds like we are having the same problem. I have posted about the problem in this thread. http://groups.google.com/group/jquery-en/browse_thread/thread/5d29f6e751ce5f3a?hl=en# The thread above though refers to a field not using remote, but I'm also having the same problem on another

[jQuery] Re: [VALIDATION] Fields not updating numberOfInvalids count

2008-12-14 Thread Jörn Zaefferer
Could you provide a simplified example that gives focus to the actual problem here? Jörn On Sat, Dec 13, 2008 at 9:16 PM, Jet webones...@hotmail.com wrote: Hi, It's kind of difficult for me to explain for English is not my native language. I'll explain it briefly and refer you to the

[jQuery] Re: [VALIDATION] Fields not updating numberOfInvalids count

2008-12-14 Thread Jet
Hi Jörn, Thanks for responding :) The problem is quite obvious if you could pls test the page with the following action: 1) Go to URL: http://www.thaidatelink.com/page/delivery/ 2) Check/Select the Radio button label Yes 3) Enter some text in the Recipient's Email or Recipient's Telephone

[jQuery] Re: validation plugin question

2008-12-13 Thread Sean Allen
I already have that in place. How do I get the autogenerated label to not do style=display:inline ? In that demo there is no such element styling on the label created for errors. On Dec 12, 2008, at 4:37 PM, Jörn Zaefferer wrote: In that demo this line hides the default messages for the

[jQuery] Re: validation plugin question

2008-12-13 Thread Jörn Zaefferer
No idea, I'd need to see some code, a testpage is prefered. Jörn On Sat, Dec 13, 2008 at 4:03 PM, Sean Allen s...@monkeysnatchbanana.com wrote: I already have that in place. How do I get the autogenerated label to not do style=display:inline ? In that demo there is no such element styling

[jQuery] Re: validation plugin question

2008-12-13 Thread Sean Allen
I copied it straight from the demo with just a couple minor changes... going to remove the code that I don't need once I work this out... $(document).ready(function(){ $.validator.messages.required = ; $(#lf).bind(invalid-form.validate, function(e, validator) {

[jQuery] Re: validation plugin question

2008-12-12 Thread Jörn Zaefferer
In that demo this line hides the default messages for the required method: $.validator.messages.required = ; Jörn On Fri, Dec 12, 2008 at 9:17 PM, Sean Allen s...@monkeysnatchbanana.com wrote: playing around with it. don't want to get error messages displayed. i'm just putting in a

[jQuery] Re: validation: show only certain errors messages

2008-12-01 Thread Jörn Zaefferer
You'll find this in a few examples: $.validator.messages.required = ; That sets the default message for required to an empty string, which should be what you are looking for. Jörn On Mon, Dec 1, 2008 at 5:10 PM, dmikester1 [EMAIL PROTECTED] wrote: I am using the validation plugin. Very

[jQuery] Re: Validation

2008-11-27 Thread seasoup
put 'return result' inside of the success method. Everything outside of the ajax call is done sequentially, so its returning before the ajax call comes back. Actually, you may need to put the ajax call outside of validator.addmethod and call validator.addmethod inside of the success. On Nov

[jQuery] Re: Validation: AJAX-based without remote?

2008-10-31 Thread Jörn Zaefferer
Returning messages from the server with a single request for the whole form is a long-term goal, but currently not feasible. Jörn On Fri, Oct 31, 2008 at 9:31 PM, Nishan Karassik [EMAIL PROTECTED] wrote: Jorn, I've been looking at the remote method of your Validation plugin, but was

[jQuery] Re: [Validation] DOM changes, adding validation rules to new objects

2008-10-17 Thread Jörn Zaefferer
Take a look at rules(add, ...): http://docs.jquery.com/Plugins/Validation/rules#.22add.22rules Jörn On Thu, Oct 16, 2008 at 7:34 PM, Mike [EMAIL PROTECTED] wrote: Hi Jörn, Brilliant plug-in, it may be that I can do what I need to but i can't seem to make it work. I'm building a form with

[jQuery] Re: [Validation] DOM changes, adding validation rules to new objects

2008-10-17 Thread Mike
Thanks Jörn, Typically I spend hours looking and it's right under my nose. Regards Michael On Oct 17, 8:39 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Take a look at rules(add, ...):http://docs.jquery.com/Plugins/Validation/rules#.22add.22rules Jörn On Thu, Oct 16, 2008 at 7:34 PM,

[jQuery] Re: Validation - stop validation

2008-10-16 Thread Jörn Zaefferer
There is no builtin option for that, no. The issue here seems to be that you have a form with 100 textboxes... Jörn On Wed, Oct 15, 2008 at 3:51 PM, EbenRoux [EMAIL PROTECTED] wrote: Hello, Is it possible to stop the validation on a form after X number of errors? If I have a form with 100

[jQuery] Re: Validation - stop validation

2008-10-16 Thread EbenRoux
Jorn, Not really, the issue is how to stop validation after X errors. Regards, Eben

[jQuery] Re: [Validation] required dependency issue

2008-10-16 Thread Jörn Zaefferer
You proably want to use a custom method in this case instead of the dependency check. Jörn On Thu, Oct 16, 2008 at 5:25 PM, w1ntermut3 [EMAIL PROTECTED] wrote: Hi, Trying to use the validation plugin (http://docs.jquery.com/Plugins/ Validation) to manage the following: input type=radio

[jQuery] Re: validation works in FF, but not in IE??

2008-10-14 Thread Jörn Zaefferer
You've got a trailing comma here: geslacht:{ required: true }, Removing it should fix IE (and every other non-FF browser). Jörn 2008/10/15 [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, i use the validation plugin form

[jQuery] Re: validation works in FF, but not in IE??

2008-10-14 Thread [EMAIL PROTECTED]
thanks, that was the right solution, i also found this in another thread, after i let the dog out, really:) On 15 okt, 00:44, Jörn Zaefferer [EMAIL PROTECTED] wrote: You've got a trailing comma here: geslacht:{ required: true

[jQuery] Re: [Validation plugin] attaching onclick validation to checkboxes before submit button is clicked?

2008-10-13 Thread Jörn Zaefferer
Details about the default behaviour are here: http://docs.jquery.com/Plugins/Validation/Reference#Validation_event You can make the validation more aggresive with some custom event handling: $(input[name=q4]).click(function() { $(this).valid(); }); Jörn PS: You really shouldn't use a single

[jQuery] Re: [validation] Validate on dynamic loaded forms?

2008-10-10 Thread Jörn Zaefferer
Could you provide a testpage? Jörn On Thu, Oct 9, 2008 at 9:05 PM, jonr [EMAIL PROTECTED] wrote: This does not work: $(document).ready(function() { $(#menu_move_eq).click( function() { $(.hiddenform).hide(); $(#movebox).show();

[jQuery] Re: Validation regarding Jquery

2008-10-01 Thread Nicolas R
just make sure that you remove any previous validation messages before inserting new ones. if you add class of 'validation-msg' to your messages, then do a $('.validation-msg').remove() whenever you validate something. If you are considering performance when you could also do something along the

[jQuery] Re: Validation plug-in - how to set russian messages for all

2008-09-25 Thread Justin Kozuch
Hey Mateusz, I've worked with the validation plugin a bit (I'm implementing it for a bank), so I may be able to assist you. Do you have a URL I can look at? - Justin On Sep 25, 5:12 am, matma [EMAIL PROTECTED] wrote: Hi, I'm using validation plug-in in our application for customers from

[jQuery] Re: Validation plug-in - how to set russian messages for all

2008-09-25 Thread matma
On 25 Wrz, 15:38, Justin Kozuch [EMAIL PROTECTED] wrote: Hey Justin, http://193.201.136.69/ecod_test_ru/InfoSeller.aspx It's a very simple test page, with very simple validation, but it definitely shows what i'm asking about. I guess when You'll look at this site, and hit Send, You'll see: This

[jQuery] Re: Validation plug-in - how to set russian messages for all

2008-09-25 Thread Jörn Zaefferer
The localization files can be used by just including the script after the main file. script src=jquery.validate.js .../ script src=messages_ru.js .../ That should be enough. Jörn On Thu, Sep 25, 2008 at 4:39 PM, matma [EMAIL PROTECTED] wrote: On 25 Wrz, 15:38, Justin Kozuch [EMAIL PROTECTED]

[jQuery] Re: Validation Plugin - How to Validate input=file

2008-09-25 Thread Jörn Zaefferer
Could you post a testpage? Usually file inputs work just fine, see this demo: http://jquery.bassistance.de/validate/demo/errorcontainer-demo.html Jörn On Thu, Sep 25, 2008 at 4:03 PM, Adam [EMAIL PROTECTED] wrote: I'm trying to validate that someone has selected a file for upload before

[jQuery] Re: Validation class question

2008-09-14 Thread Jörn Zaefferer
To start, check out the highlight/unhighlight options: http://docs.jquery.com/Plugins/Validation/validate#toptions Jörn On Sat, Sep 13, 2008 at 5:10 PM, flycast [EMAIL PROTECTED] wrote: I am using the validate plugin. I have the following input that is required: label class=requiredLast:

[jQuery] Re: Validation Plugin Not Working in FF3 but okay in IE, Chrome and Opera 9.5?

2008-09-10 Thread Jörn Zaefferer
Your script tag seems to get ignored in Firefox: You've got type=text/jscript there, which should be text/javascript. That may be it. Jörn On Tue, Sep 9, 2008 at 7:24 PM, Bill [EMAIL PROTECTED] wrote: I am using the great Validation plugin by Jörn Zaefferer (http://

[jQuery] Re: Validation Plugin Not Working in FF3 but okay in IE, Chrome and Opera 9.5?

2008-09-10 Thread Bill
Jörn, Great catch that fixed it :) Thanks so much for taking a look. Bill On Sep 10, 8:09 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: Your script tag seems to get ignored in Firefox: You've got type=text/jscript there, which should be text/javascript. That may be it. Jörn On Tue, Sep 9,

[jQuery] Re: [Validation plugin] Checkbox array problem

2008-09-07 Thread faizal iqbaal
hi All , an interesting find...am not sure if its a bug or not..but am open to debate. Looking at the jquery.append()...which is considerably slow for methe same with jquery.html() basically the latter jquery.html() internally routes back to the query.append() method ..is this a bug

[jQuery] Re: Validation addmethod input1input2

2008-09-05 Thread tlob
morning jQueryians anyone have an idea? thx tlz On Sep 4, 6:08 pm, tlob [EMAIL PROTECTED] wrote: Hello I am fairly new to jQuery and JS, so be nice to me ;-) I added the validation Plug into my form. I have 5*2 Input fields in form of the UI/datepicker. Every pair can be blank or both

[jQuery] Re: [Validation plugin] Checkbox array problem

2008-09-05 Thread Jörn Zaefferer
See http://docs.jquery.com/Plugins/Validation/Reference#Fields_with_complex_names_.28brackets.2C_dots.29 Jörn On Fri, Sep 5, 2008 at 12:56 AM, nonsense [EMAIL PROTECTED] wrote: Hi, I'm using Validation plugin (http://docs.jquery.com/Plugins/ Validation) and I want to use it to check

[jQuery] Re: Validation Plugin Issue/Bug ??

2008-08-25 Thread Jörn Zaefferer
You can use the highlight-option to remove the success class. Jörn On Mon, Aug 25, 2008 at 4:16 AM, xxkylexx [EMAIL PROTECTED] wrote: Hey guys, I am using JQuery Validation Plugin and am getting a bug that I can't seem to figure out. When the user inputs a correct input, it shows my

[jQuery] Re: Validation Plugin Issue/Bug ??

2008-08-25 Thread xxkylexx
Got it. Thanks. On Aug 25, 10:33 am, Jörn Zaefferer [EMAIL PROTECTED] wrote: You can use the highlight-option to remove the success class. Jörn On Mon, Aug 25, 2008 at 4:16 AM, xxkylexx [EMAIL PROTECTED] wrote: Hey guys, I am using JQuery Validation Plugin and am getting a bug that I

[jQuery] Re: Validation Problem Using the remote Method

2008-07-15 Thread Nimrod
false value is the data or result that the remote method should recieved while the remote request is still on process. Is it possible to make remote method default value = false. What I mean of False here is invalid entry. Sorry for my poor English. On Jul 12, 6:48 pm, Jörn Zaefferer [EMAIL

[jQuery] Re: Validation Problem Using the remote Method

2008-07-15 Thread Jörn Zaefferer
I'm still not sure what you are trying to achieve. Maybe explaining the behaviour the user would experience on your app works better. Click submit, a request is sent, something happens, something is returned, something else happens, etc. pp. Jörn On Tue, Jul 15, 2008 at 3:14 PM, Nimrod [EMAIL

[jQuery] Re: Validation and Tabs plugins compatibility

2008-07-08 Thread peace4theapes
Diego, Thanks for the reply. I tried this idea but it threw up another interesting problem. I was wondering if you could throw some light on it. When the validation plugin adds an error class, it does not remove it once the form is validated. Therefore when I switch to the tab with the error

[jQuery] Re: Validation and Tabs plugins compatibility

2008-07-03 Thread Diego A.
Hi, This is just an idea (which I haven't checked) but since you have JS experience I'm just gonna throw it at you. The validation plugin adds an 'error' class to all problem fields. You could very quickly loop through each tab, look for an error and (if found), change the focus to that tab.

[jQuery] Re: Validation is not working as expected. Input value deleted!

2008-06-26 Thread Brian J. Fink
Try using String.search(regexp)+1 instead of regexp.test(String). Are you getting legitimate values to fail, or invalid ones to pass? On Jun 20, 7:48 pm, shapper [EMAIL PROTECTED] wrote: Very strange ... it works both ways ... well, what I mean is that I keep having the same problem in both

[jQuery] Re: Validation Plugin issue when using TinyMCE

2008-06-26 Thread shapper
Please, does anyone knows why do I need to push twice the submit button so the validation be updated? Thanks, Miguel On Jun 25, 2:01 pm, shapper [EMAIL PROTECTED] wrote: Hi, It worked but now I get a new problem which I also notice before! I though it was due to this but it seems it is not

<    1   2   3   4   >