[jQuery] Re: jQuery form Validation plugin with JSP

2009-11-03 Thread James
The value you return should be simply just true or false. No HTML
or other stuff.

Not:

html
  headtitleRemote Email Validator/title/head
  body
true
  /body
/html

or:

html
  headtitleRemote Email Validator/title/head
  body
false
  /body
/html

Just:

true

or:

false

Notice the difference? :)

On Nov 2, 1:10 pm, Felix gre1...@gmail.com wrote:
 I have a static html page for testing and the remote field is wired
 correctly with email as the following
  rules: {
                 FirstNameEdit: { required: true },
                 LastNameEdit: { required: true },
                 EmailEdit: { required: true, email: true, remote:
 emails.jsp } ,
                 EnrollYear: {required: true}
                 },
             messages: {
                 FirstNameEdit: {required:First name is required},
                 LastNameEdit: {required:Last name is required},
                 EmailEdit: {required:Valid email address is
 required, remote:Incorrect email address},
                 EnrollYear: {required:Choose one from the list}
                 }

 The emails.jsp page is very simple page as the following

 %@ page language=java contentType=text/html; charset=UTF-8
     pageEncoding=UTF-8%

 html
   headtitleRemote Email Validator/title/head
   body
   %      //get an instance of the email validator
       if (request.getParameter(email) == null) {
                   out.print(false);
               } else {
                  String email =request.getParameter(email);
                  email = email.trim();
                  if(email.equals(a...@email.com)){
                         out.print(false);
                 }
                 else{
                         out.print(true);
                 }

               }
   %
   /body
 /html

 I would like to know what did I do wrong such that email is not using
 the result from emails.jsp when making a remote validation.

 Thanks,

 Felix


[jQuery] jQuery form Validation plugin with JSP

2009-11-02 Thread Felix
I have a static html page for testing and the remote field is wired
correctly with email as the following
 rules: {
FirstNameEdit: { required: true },
LastNameEdit: { required: true },
EmailEdit: { required: true, email: true, remote:
emails.jsp } ,
EnrollYear: {required: true}
},
messages: {
FirstNameEdit: {required:First name is required},
LastNameEdit: {required:Last name is required},
EmailEdit: {required:Valid email address is
required, remote:Incorrect email address},
EnrollYear: {required:Choose one from the list}
}

The emails.jsp page is very simple page as the following

%@ page language=java contentType=text/html; charset=UTF-8
pageEncoding=UTF-8%

html
  headtitleRemote Email Validator/title/head
  body
  %  //get an instance of the email validator
  if (request.getParameter(email) == null) {
  out.print(false);
  } else {
 String email =request.getParameter(email);
 email = email.trim();
 if(email.equals(a...@email.com)){
out.print(false);
}
else{
out.print(true);
}

  }
  %
  /body
/html

I would like to know what did I do wrong such that email is not using
the result from emails.jsp when making a remote validation.

Thanks,

Felix


[jQuery] Form Validation Plugin: customize input validation

2009-06-21 Thread Loony2nz

This is in regards to Jörn Zaefferer's plug in.

How do you customize input validation so that I can remove foul
language?

So that first name or last name doesn't have f*ck you or something
like that.

is this possible?

Thanks!


[jQuery] Form validation plugin

2009-04-15 Thread koolkat

I have been using the form validation plugin with jquery 1.2.6. I
would like to use the new jquery version 1.3.2 but was wondering if
there is a replacement validation  plugin  for this version or if it
could be made to work.

Thank you.


[jQuery] form/validation plugin questions

2008-10-10 Thread cambazz

Hello,

I am using form and validation plugins successfully. I was wondering:

a) how can I make an error message show at a custom location? for
example when validating an email, it will just add right next to the
input element an error message as a generated label. how can I make
error messages show at some custom div.

b) sometimes i need to validate at server side. for example, i might
need to check if a username previously exists in the system or not. I
return different responseText each time, so showResponse method does
the processing.
how can I show a custom message at a custom place after submit?

Best Regards,
-C.B.


[jQuery] Form Validation Plugin Required Dependency Expression Help

2008-06-13 Thread [EMAIL PROTECTED]

Hey everyone,

I was wondering how to go about structuring validation code for my
situation:
I have 3 fields - all input fields

I need to do the following:
Check all values of the input fields and make sure at least one of the
3 fields are filled out (2 url's and 1 input type=file)

I did find some examples for 2 field dependencies but could not find
one where there were 3 in play.

Any suggestions?


[jQuery] Re: jQuery Form Validation Plugin with Rails

2008-02-24 Thread Jörn Zaefferer


jmcervera schrieb:

Hello,
This is my first post in this group.

I am trying to use the
Form Validation Plugin with Ruby on Rails, and I can´t make it work.
It seems only working with forms using the 'get' action, not with
'post.
An this goes against the REST principles of the architecture I am
using.
Is there some problem with this?.
  

Could you post a testpage?

The validation plugin doesn't care for the method used to submit the 
form, so the issue is most likely somewhere else.


Jörn


[jQuery] jQuery Form Validation Plugin with Rails

2008-02-22 Thread jmcervera

Hello,
This is my first post in this group.

I am trying to use the
Form Validation Plugin with Ruby on Rails, and I can´t make it work.
It seems only working with forms using the 'get' action, not with
'post.
An this goes against the REST principles of the architecture I am
using.
Is there some problem with this?.


Thank you very much.

Juanma Cervera
'


[jQuery] Form Validation Plugin - animating errorContainer

2007-10-31 Thread Web Specialist
Hi all

how to animate errorContainer message with Form Validation plugin?

I have this code and I'll want to animate it when occurs an error in my
form:


$(#frm).validate({
...
errorContainer: $(#messageBox),
...

inside my form:
div id=messageBox
h5 class=msgerrThis form contains errors. Please try again!/h5
/div


Thanx.
Marco Antonio


[jQuery] Form Validation Plugin

2007-05-15 Thread Mandy Singh

Does jquery have a simple form validation plugin where I can define the
rules for a field and respective error messages and throw all messages out
to a common container on top of the form. No ajax just simple client side
validations. The one I saw on the wiki is really huge and does all sorts of
things but I just want a simple one. Anything available? Else I'll write
something up. Please let me know.

Regards,
Mandy.