jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Ajax

Hide navigator Hide source code

The jQuery4PHP library has a full suite of AJAX capabilities. The functions and methods therein allow us to load data from the server without a browser page refresh.

AjaxError

Register a handler to be called when Ajax requests complete. This is an Ajax Event.
<div>
<input type="button" value="Get Data" id="btnAjaxError" />
<div style="color:red" id="logForAjaxError">
</div>
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnAjaxError')
  ->execute(
    YsJQuery::ajax()
      ->_url('a404response.url')
      ->_success(
        new YsJsFunction('alert(response)','response')
      )
  )
?>
<?php
echo
YsJQuery::ajaxError()
  ->in('#btnAjaxError')
  ->handler(
   YsJQuery::html()->in('#logForAjaxError')
                   ->value('Error on the AJAX Call')
  )
  ->executeOnReady();
?>
</div>

Comments

  • Support requests, bug reports, and off-topic comments will be deleted without warning.

blog comments powered by Disqus

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net