{"action":"created","issue":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/175","labels_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/175/comments","events_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/175/events","html_url":"https://github.com/1000hz/bootstrap-validator/issues/175","id":98281434,"number":175,"title":"AJAX throws error when using data-disable","user":{"login":"kzisme","id":3493562,"avatar_url":"https://avatars.githubusercontent.com/u/3493562?v=3","gravatar_id":"","url":"https://api.github.com/users/kzisme","html_url":"https://github.com/kzisme","followers_url":"https://api.github.com/users/kzisme/followers","following_url":"https://api.github.com/users/kzisme/following{/other_user}","gists_url":"https://api.github.com/users/kzisme/gists{/gist_id}","starred_url":"https://api.github.com/users/kzisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzisme/subscriptions","organizations_url":"https://api.github.com/users/kzisme/orgs","repos_url":"https://api.github.com/users/kzisme/repos","events_url":"https://api.github.com/users/kzisme/events{/privacy}","received_events_url":"https://api.github.com/users/kzisme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-30T22:52:21Z","updated_at":"2015-07-31T01:02:10Z","closed_at":null,"body":"Currently, I'm trying to add validation to a form.  After trying a few different things I found out that\r\nusing:\r\n\r\n<input type=\"submit\" id=\"submit-button\" class=\"btn btn-lg btn-primary\" value=\"Submit\" data-disable=\"true\" />\r\n\r\nThrows an error and creates an error when I attempt to POST.  If I change the input type to \"button\" it works, or if data-disable is removed as well.  \r\n\r\nHere is my current AJAX call:\r\n```\r\n        $.ajax({\r\n\r\n            type: \"POST\",\r\n\r\n            contentType: 'application/json',\r\n\r\n            url: apiRootURL + '/Requests/',\r\n\r\n            dataType: \"json\",\r\n\r\n            data: encompassRequest,\r\n\r\n            async: true,\r\n\r\n            success: function (data) {\r\n\r\n                window.location.assign(\"/Home\")\r\n\r\n            },\r\n\r\n            error: function (request, textStatus, errorThrown) {\r\n\r\n                if (errorThrown == \"Forbidden\")\r\n\r\n                    alert(\"Error:\\nUser not authorized to add requests\");\r\n\r\n                else {\r\n\r\n                    alert(\"Error:\\n\" + errorThrown)\r\n\r\n                }\r\n\r\n            }\r\n\r\n        });\r\n```\r\n\r\nI was just trying to see if I'm doing something wrong or if this is a bug that someone else has experienced.  "},"comment":{"url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/comments/126533376","html_url":"https://github.com/1000hz/bootstrap-validator/issues/175#issuecomment-126533376","issue_url":"https://api.github.com/repos/1000hz/bootstrap-validator/issues/175","id":126533376,"user":{"login":"kzisme","id":3493562,"avatar_url":"https://avatars.githubusercontent.com/u/3493562?v=3","gravatar_id":"","url":"https://api.github.com/users/kzisme","html_url":"https://github.com/kzisme","followers_url":"https://api.github.com/users/kzisme/followers","following_url":"https://api.github.com/users/kzisme/following{/other_user}","gists_url":"https://api.github.com/users/kzisme/gists{/gist_id}","starred_url":"https://api.github.com/users/kzisme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzisme/subscriptions","organizations_url":"https://api.github.com/users/kzisme/orgs","repos_url":"https://api.github.com/users/kzisme/repos","events_url":"https://api.github.com/users/kzisme/events{/privacy}","received_events_url":"https://api.github.com/users/kzisme/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T01:02:10Z","updated_at":"2015-07-31T01:02:10Z","body":"On form submit - I just receive an alert error (browser) and on the browser console there are two warnings.  \r\n\r\n1. Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the user experience\r\n2. Setting 'XMLHttpRequest.withCredentials' for synchronous requests is deprecated.\r\n\r\nAfter that the page refreshes.  "}}