In this case I have only the validate request for the password field
that also sends the username for the test ...

But if I would have various requests, from validate or others,
shouldn't I add the username only to the password validate request?

Is this possible?

Thanks,
Miguel

On Nov 16, 6:45 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]>
wrote:
> This would add the username to all requests:
>
> $().ajaxSend(function(event, XMLHttpRequest, ajaxOptions) {
>   ajaxOptions.data.username = $("#username").val();
>
> });
>
> Jörn
>
> On Sun, Nov 16, 2008 at 7:18 PM, shapper <[EMAIL PROTECTED]> wrote:
>
> > Sorry, is there any example using validate for this?
>
> > To be honest I am completely lost on how to do this ...
>
> > Thank You,
> > Miguel
>
> > On Nov 16, 10:39 am, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> > wrote:
> >> I mean
>
> >> $().ajaxSend(function() {
>
> >> });
>
> >> Jörn
>
> >> On Sun, Nov 16, 2008 at 1:24 AM, shapper <[EMAIL PROTECTED]> wrote:
>
> >> > Hi Jorn,
>
> >> > You mean using:
>
> >> >  $.ajax({
> >> >   beforeSend: function(){
> >> >   }
> >> >  });
>
> >> > And in before send get the value of the text box and add it to the
> >> > ajax validate request of the validate?
>
> >> > But how can I link it to the Validate email validation?
>
> >> > Thanks,
> >> > Miguel
>
> >> > On Nov 15, 2:21 pm, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
> >> >> And about form submit before to validate e-mail field?
>
> >> >> Do you know something about that?
>
> >> >> Thanks
> >> >> Alexsandro
>
> >> >> On 13 nov, 14:00, "Jörn Zaefferer" <[EMAIL PROTECTED]>
> >> >> wrote:
>
> >> >> > The plugin doesn't support that. As a workaround, you can use jQuery's
> >> >> > ajaxSend callback to add additional data to the 
> >> >> > request:http://docs.jquery.com/Ajax/ajaxSend#callback
>
> >> >> > Jörn
>
> >> >> > On Thu, Nov 13, 2008 at 3:35 PM, shapper <[EMAIL PROTECTED]> wrote:
>
> >> >> > > Hello,
>
> >> >> > > I am using the following to validate an email field:
>
> >> >> > > Email: { email: true, remote: "/Account/FindEmail", required: true }
>
> >> >> > > I am checking if there is already an account with that email.
>
> >> >> > > In my form I also have an input where the user inserts its username.
> >> >> > > When validating the email I need to send also the Username an not 
> >> >> > > only
> >> >> > > the email.
>
> >> >> > > Can I do this?
>
> >> >> > > Thanks,
> >> >> > > Miguel

Reply via email to