Wiki source for CurrentAjaxFormSubmissionCheatSheet


Show raw source

=====Disable Ajax on HEAD PHP pages=====

Sometimes, if a form submission reults in an error, PHP pages backed by Ajax won't return at all. This means you won't get an error message and the page waits wor a HTTP response forever. If you need to debug a page, best practice is to disable Ajax temporarily and enable it again if you are sure your code works as expected. Below you find the appropriate URL query parameters which can be used to enable/disable Ajax:

enable: enable_ajax=true

disable: disable_ajax=true

example: http://localhost/index.php?disable_ajax=true

The PHP code which triggers such a behaviour can be found in 'session_auth_method.php' and 'headjs.php'.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki