PFSenseDevWiki : CurrentAjaxFormSubmissionCheatSheet

PfSenseDevHome :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Oldest known version of this page was edited on 2007-08-18 23:49:39 by ChrisBuechler []
Page view:

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 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.0338 seconds