Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:23:52+00:00 2026-06-12T06:23:52+00:00

I am validating a field called client code for uniqueness … I have used

  • 0

I am validating a field called client code for uniqueness…

I have used onkeyup JS event for this purpose.
But its not working fine when i type the keys very fast. On this

onkeyup event

i am sending an ajax request to check whether the entered data already exists in the table or not.

Pls help if there is any alternative..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:23:53+00:00Added an answer on June 12, 2026 at 6:23 am

    Your question is quite vague in terms of the actual issue that you seem to be facing. But what I derive from it is that you are firing too many requests as you suggest rapid key presses!


    As you would know, Ajax is like a normal page request, just done async, so it is bound by the same network latency, throughput and round trip constraints.

    A clean way to achieve the functionality you need is to use a technique called throttling. One of the best js plugin for this purpose is located here: http://benalman.com/projects/jquery-throttle-debounce-plugin/
    It basically allows you to rate-limit your requests to the server, thus not choking the resources and providing a smooth UI.


    Also, unless you wish to trap certain special keys like ESC, I would suggest using keypress or keydown events. Can’t remember the specific reasoning for it, but just a suggestion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Event model with a finish_time field and a form checkbox called
I'm using client-side, unobtrusive validation in MVC 3. I have a field called MinPrice
I can't see a clear mistake in this code. Instead of validating my fields,
I am facing an issue. I have written code for validating my input fields,
Good afternoon. I have a Model that has a field called percentage. All similar
See here: http://jsfiddle.net/zYcJm/ The jQuery should be validating each field to check if they
I'm validating a text field in my form as follows: $name = new Zend_Form_Element_Text('name');
Rails displays all validation error messages associated with a given field. If I have
I have JavaScript form validation functions like so: function validate_name(field) { if (field ==
Where should I locate the code for validating an employee ID (badge) that will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.