[jQuery] Re: Form Validation

2009-02-27 Thread Gelegrodan
Use the jquery validation plugin! http://bassistance.de/jquery-plugins/jquery-plugin-validation/ On Feb 27, 9:27 pm, ml2009 wrote: > I have just started using jQuery and wonder if you could help me > please. > > I am working on a form which contains a field to enter multi-email > addresses.  How

[jQuery] Re: function $.ajax return true/false ?

2009-02-27 Thread Gelegrodan
}); > return returnVal; > > } > > On Feb 27, 9:04 am, James wrote: > > > Oops, I just read that you did try 'false'.. > > > On Feb 27, 9:03 am, James wrote: > > > > I'm sorry, I mean 'async: false'! Try that.

[jQuery] Re: function $.ajax return true/false ?

2009-02-27 Thread Gelegrodan
try 'false'.. > > On Feb 27, 9:03 am, James wrote: > > > I'm sorry, I mean 'async: false'! Try that. :) > > > On Feb 27, 8:54 am, Gelegrodan wrote: > > > > Hello! > > > Thanks you your answer, but it seems like it didnt help! &

[jQuery] Re: function $.ajax return true/false ?

2009-02-27 Thread Gelegrodan
t is not-true, so the if-statement > fails). Then a few milliseconds later, your AJAX response has > returned, but the code is way passed the if-statement by then already. > Try adding the 'async: true' to the $.ajax() option. This tells the > rest if your code to

[jQuery] function $.ajax return true/false ?

2009-02-27 Thread Gelegrodan
Hello I have the following code: function pnrexists(a){ $.ajax({ url: '/inc/chkusr.php?q=p', type: 'POST', dataType: 'html', data: {'pnr': a}, timeout: 2000, success: function(data) {

[jQuery] Decide then its error/success on ajax submit?

2009-02-26 Thread Gelegrodan
Hello I use the validation plugin and the following code: submitHandler: function(form) { $('#submit').attr("disabled", "true"); $.ajax({ type: 'POST', url: 'submit.php'

[jQuery] Re: Combining jQuery validation, ajax Submit and jqUploader

2009-02-26 Thread Gelegrodan
"submitHandler CallbackDefault: default (native) form submit Callback for handling the actual submit when the form is valid. Gets the form as the only argmument. Replaces the default submit. The right place to submit a form via Ajax after it validated. Submits the form via Ajax when valid

[jQuery] Re: VALIDATE - check zip and return the city into another input?

2009-02-23 Thread Gelegrodan
t, but otherwise $("#cityplace").text(thereturnedcity); > > On Feb 23, 5:53 pm, Gelegrodan wrote: > > > Hello > > I have two fields; zip and city, i validate zip with remote and it > > checks against a list if the zip is valid, but i want it too: > > check i

[jQuery] VALIDATE - check zip and return the city into another input?

2009-02-23 Thread Gelegrodan
Hello I have two fields; zip and city, i validate zip with remote and it checks against a list if the zip is valid, but i want it too: check if the zip is valid return true if it is valid AND return the city of the zip and paste it in the city-input... How to? Of couse i have a databas/array/list

[jQuery] [validate]check zip and return the city into another input?

2009-02-23 Thread Gelegrodan
Hello I have two fields; zip and city, i validate zip with remote and it checks against a list if the zip is valid, but i want it too: check if the zip is valid return true if it is valid AND return the city of the zip and paste it in the city-input... How to? Of couse i have a databas/array/list

[jQuery] [validate] check zip and return the city into another input?

2009-02-23 Thread Gelegrodan
Hello I have two fields; zip and city, i validate zip with remote and it checks against a list if the zip is valid, but i want it too: check if the zip is valid return true if it is valid AND return the city of the zip and paste it in the city-input... How to? of couse i have a databas/array/list