{"action":"opened","issue":{"url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/63","labels_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/63/comments","events_url":"https://api.github.com/repos/running-coder/jquery-typeahead/issues/63/events","html_url":"https://github.com/running-coder/jquery-typeahead/issues/63","id":100776908,"number":63,"title":"Prevent Ajax Request When Data Empty - 404 Error Prevention","user":{"login":"nateperry","id":3438407,"avatar_url":"https://avatars.githubusercontent.com/u/3438407?v=3","gravatar_id":"","url":"https://api.github.com/users/nateperry","html_url":"https://github.com/nateperry","followers_url":"https://api.github.com/users/nateperry/followers","following_url":"https://api.github.com/users/nateperry/following{/other_user}","gists_url":"https://api.github.com/users/nateperry/gists{/gist_id}","starred_url":"https://api.github.com/users/nateperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nateperry/subscriptions","organizations_url":"https://api.github.com/users/nateperry/orgs","repos_url":"https://api.github.com/users/nateperry/repos","events_url":"https://api.github.com/users/nateperry/events{/privacy}","received_events_url":"https://api.github.com/users/nateperry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T14:03:23Z","updated_at":"2015-08-13T14:03:23Z","closed_at":null,"body":"Hello,\r\n\r\nI am using the typeahead's ajax source. On the page I have a select which provides the appropriate ID to pass to the typeaheads source. On page load, the ID is empty. When you use the typeahead, it does the request, receives a 404 error and stops working altogether.\r\n\r\nIs it possible to add some type of pre-request-send callback that if returns false will prevent the request from being sent, and avoiding a 404 error.\r\n\r\nThanks!"}}