English 中文(简体)
Ajax :形式问题
原标题:Ajax : Form question
  • 时间:2011-06-04 23:02:23
  •  标签:
  • ajax

我的发言形式是创建账户,我有电子邮件Id和密码领域,我希望确保用户名称是独一无二的。

在用户填写进入用户名称后,即他点击密码现场后(或他在进入用户名称后打上了标号后)时,我可以使用亚克斯进行这种检查。

Thanks Any efforts will be appreciated

最佳回答

在使用名称领域使用“交换”方法,然后使用标准AJAX查询。

Blur与Change属性之间的差别如何?

问题回答

You can use a (jQuery) .blur() or (standard JS) .onBlur() event on the username field to trigger an AJAX call so you can immediately check whether or not the username is in the database when the user leaves the textfield.

改变的唯一东西是它何时起火,在整个浏览器中如何工作。 我也许会 with,以确保用户实际上在实地工作。 如果每次进行重大突发事件时都会发生变化,那么你最终会发出大量可削弱这一系统的外泛亚呼吁。 同样,我的选择是模糊不清。

你可以:

  1. bind a focus event to the username field
  2. then in this function check if the username has been input
  3. if it is use the AJAX method to send the username across to the server to check
  4. receive a response from the server side for the AJAX request and respond appropriately on the front end




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签