jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Deferred

Hide navigator Hide source code

Then

<div>
<input type="button" value="Get Data [GET]" id="ajaxGetType" />
<input type="button" value="Get Data [GET] Error 404" id="ajaxGetType2" />
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#ajaxGetType')
  ->execute(
    YsJQuery::get('examples/response/ajaxResponse.php'),
    YsJQuery::then()
      ->doneCallbacks(new YsJSFunction('alert("$.get succeeded")'))
      ->failCallbacks(new YsJSFunction('alert("$.get failed!")'))
  );
?>

<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#ajaxGetType2')
  ->execute(
    YsJQuery::get('examples/response/404response.php'),
    YsJQuery::then()
      ->doneCallbacks(new YsJSFunction('alert("$.get succeeded")'))
      ->failCallbacks(new YsJSFunction('alert("$.get failed!")'))
  );
?>
</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