{"action":"created","issue":{"url":"https://api.github.com/repos/willin/InstantPjax/issues/1","repository_url":"https://api.github.com/repos/willin/InstantPjax","labels_url":"https://api.github.com/repos/willin/InstantPjax/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/willin/InstantPjax/issues/1/comments","events_url":"https://api.github.com/repos/willin/InstantPjax/issues/1/events","html_url":"https://github.com/willin/InstantPjax/issues/1","id":158580256,"number":1,"title":"Form Support","user":{"login":"schester44","id":15207595,"avatar_url":"https://avatars.githubusercontent.com/u/15207595?v=3","gravatar_id":"","url":"https://api.github.com/users/schester44","html_url":"https://github.com/schester44","followers_url":"https://api.github.com/users/schester44/followers","following_url":"https://api.github.com/users/schester44/following{/other_user}","gists_url":"https://api.github.com/users/schester44/gists{/gist_id}","starred_url":"https://api.github.com/users/schester44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schester44/subscriptions","organizations_url":"https://api.github.com/users/schester44/orgs","repos_url":"https://api.github.com/users/schester44/repos","events_url":"https://api.github.com/users/schester44/events{/privacy}","received_events_url":"https://api.github.com/users/schester44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-05T23:10:35Z","updated_at":"2016-06-06T01:36:04Z","closed_at":null,"body":"Does this support PJAX form submits? The code works well out of the box but I can't seem to get forms to work. With the original PJAX library, you would submit a form using data-pjax=\"true\", i've tried changing it to data-ipjax=\"true\" and have also tried changing $_SERVER['HTTP_X_PJAX'] to 'HTTP_X_IPJAX'.\r\n\r\nWondering if there is any official support or a work around? \r\n\r\nThank you for your hard work!"},"comment":{"url":"https://api.github.com/repos/willin/InstantPjax/issues/comments/223851858","html_url":"https://github.com/willin/InstantPjax/issues/1#issuecomment-223851858","issue_url":"https://api.github.com/repos/willin/InstantPjax/issues/1","id":223851858,"user":{"login":"willin","id":1890238,"avatar_url":"https://avatars.githubusercontent.com/u/1890238?v=3","gravatar_id":"","url":"https://api.github.com/users/willin","html_url":"https://github.com/willin","followers_url":"https://api.github.com/users/willin/followers","following_url":"https://api.github.com/users/willin/following{/other_user}","gists_url":"https://api.github.com/users/willin/gists{/gist_id}","starred_url":"https://api.github.com/users/willin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willin/subscriptions","organizations_url":"https://api.github.com/users/willin/orgs","repos_url":"https://api.github.com/users/willin/repos","events_url":"https://api.github.com/users/willin/events{/privacy}","received_events_url":"https://api.github.com/users/willin/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T01:36:04Z","updated_at":"2016-06-06T01:36:04Z","body":"try this:\r\n\r\n```js\r\n$('#form').submit(function(e){\r\n  e.preventDefault();\r\n  $.ipjax({\r\n        url: $('#form').attr('action')+'?ipjax=true',\r\n        container: '#main',\r\n        timeout: 10000, //ms\r\n        show: function(data,callback,isCached){\r\n                 // handle result\r\n        },\r\n        type:'POST',\r\n        dataType: 'json',\r\n        data: $('#form').serialized()\r\n    });\r\n});\r\n```"}}
{"actor":{"display_login":"willin"}}