{"issue":{"state":"closed","created_at":"2011-12-12T20:53:12Z","updated_at":"2011-12-13T00:59:42Z","user":{"gravatar_id":"f9df7584e23ee12fd952049d8f92539f","id":479015,"url":"https://api.github.com/users/acemrek","login":"acemrek","avatar_url":"https://secure.gravatar.com/avatar/f9df7584e23ee12fd952049d8f92539f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":3,"body":"After submiting a form; if it cannot pass the server side validation, i want to render the form page again with error messages and for this re rendering the form page i do not want page transitions. \r\n\r\nHowever when i check the src out i figured it out the below code snippet. \r\n\r\n         if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {\r\n                  isPageTransitioning = false;\r\n                  mpc.trigger( \"pagechange\", triggerData );\r\n                  return;\r\n            }\r\n\r\nfromPage[0] === toPage[0] this part cannot be true if i have error messages in my  toPage.\r\n\r\nThanks....\r\n\r\n","assignee":null,"labels":[{"name":"3 - Medium","color":"f5b800","url":"https://api.github.com/repos/jquery/jquery-mobile/labels/3+-+Medium"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2528370,"number":3253,"title":"allowSamePageTransition ","closed_at":"2011-12-13T00:59:42Z","html_url":"https://github.com/jquery/jquery-mobile/issues/3253","url":"https://api.github.com/repos/jquery/jquery-mobile/issues/3253","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T00:59:42Z","updated_at":"2011-12-13T00:59:42Z","user":{"gravatar_id":"20196c9dc97267632ce6e6b778361eae","id":23505,"url":"https://api.github.com/users/johnbender","login":"johnbender","avatar_url":"https://secure.gravatar.com/avatar/20196c9dc97267632ce6e6b778361eae?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"@acemrek \r\n\r\nThe only way to branch behavior based on the server response is to bind to `pagebeforechange` and determine what to do in the binding. I would start with the docs \r\n\r\nhttp://jquerymobile.com/demos/1.0/docs/pages/page-dynamic.html\r\n\r\nIn the callback you'll have to deal with either replacing the current page where there are errors or creating and transitioning to the new page when there aren't. \r\n\r\nHopefully those docs will help. I'm going to close this issue here and we can continue as necessary. ","id":3117101,"url":"https://api.github.com/repos/jquery/jquery-mobile/issues/comments/3117101"}}