Re: [jQuery] if/then equivalents in jQuery

2006-11-12 Thread Blair McKenzie
Is there any reason you can't simply do the client-side validation on params before the post and wrap the post in a simple 'if' statement with the result as the condition?Blair On 11/12/06, Bruce MacKay <[EMAIL PROTECTED]> wrote: Hi folks, I'm hoping someone might paint me a picture of how to use

Re: [jQuery] if/then equivalents in jQuery

2006-11-12 Thread Christof Donat
Hi, I don't have much time to help you now, but better formated code might help others: > $.fn.ajaxSubmitEmail = function(e) { > this.submit(function(){ > var params = {}; > $(this).find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], > [EMAIL PROTECTED]'hidden'

[jQuery] if/then equivalents in jQuery

2006-11-12 Thread Bruce MacKay
Hi folks, I'm hoping someone might paint me a picture of how to use jQuery's equivalent of if/then conditional statements - or how to arrange jQuery code to allow for such. I have the following code which collects information from an email form and sends it to the server for processing.  If the f