{"id":15543758,"url":"https://github.com/amiel/typingintent","last_synced_at":"2025-04-23T17:28:59.309Z","repository":{"id":1148959,"uuid":"1032303","full_name":"amiel/typingIntent","owner":"amiel","description":"Fire an event after the user has finished typing","archived":false,"fork":false,"pushed_at":"2015-12-07T17:29:35.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-03T12:33:08.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/amiel/typingIntent","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amiel.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-28T16:10:05.000Z","updated_at":"2019-08-13T14:38:13.000Z","dependencies_parsed_at":"2022-07-06T09:01:12.752Z","dependency_job_id":null,"html_url":"https://github.com/amiel/typingIntent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2FtypingIntent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2FtypingIntent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2FtypingIntent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amiel%2FtypingIntent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amiel","download_url":"https://codeload.github.com/amiel/typingIntent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250479939,"owners_count":21437464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T12:28:17.739Z","updated_at":"2025-04-23T17:28:59.287Z","avatar_url":"https://github.com/amiel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Typing Intent jQuery plugin\n\nThe typing intent plugin calls a callback after a user stops typing.\n\nIt does this by handling keyup and setting a timeout that gets reset on each keyup.\n\n== Examples\n\n\n  $(\"#q\").typingIntent(function(e) {\n    console.log(\"User finished typing (for the moment) in\", this);\n    console.log(\"The original keyup event:\", e);\n  });\n  \n  \n=== Ajax examples\n\nBasic search\n\n  (function() {\n    var ajax_request;\n    \n    $(\"#q\").typingIntent(function() {\n      ajax_request = $.get(\"/search.json\", { q: this.val() }, function() {\n        // handle search results\n      });\n    }, function() {\n      // this second function is called immediately on keyup\n      // we use it to cancel the ajax request if it is still running\n      // immediately, when the user starts typing again\n      \n      if (ajax_request) ajax_request.abort();\n      \n      // this would also be the place to handle key up and down events to navigate through the search results\n    });  \n    \n  })();\n\n\nBackground form verification\n\n  (function() {\n    var ajax_request;\n    \n    $(\"#user_zipcode\").typingIntent(function() {\n      ajax_request = $.get(\"/users/check_zipcode.json\", { zipcode: this.val() }, function(zipcode_data) {\n        // show zipcode information\n      });\n    }, function() {\n      if (ajax_request) ajax_request.abort();\n      \n      if (! (/^\\d{5}(-\\d{4})?/).test(this.val())) {\n        // returning false will prevent the first function from being run\n        // we don't need to send the ajax request unless there is a valid zipcode to check\n        return false;\n      }\n    });  \n    \n  })();\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Ftypingintent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famiel%2Ftypingintent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famiel%2Ftypingintent/lists"}