jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Pnotify

Hide navigator Hide source code

Ajax notification

<?php YsJQuery::usePlugin(YsJQueryConstant::PLUGIN_PNOTYFY); ?>

<input type="button" value="Get Data" id="btnAjax" />

<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnAjax')
  ->execute(
    YsJQuery::ajax()
      ->_url('examples/response/ajaxResponse.php')
      ->_async(false)
      ->_beforeSend(new YsJsFunction(YsPNotify::alarm("Before the request send")))
      ->_error(new YsJsFunction(YsPNotify::error("An error has occurred")))
      ->_complete(new YsJsFunction(YsPNotify::alarm("Ajax completed")->_pnotify_addclass('')))
      ->_success(
        new YsJsFunction(YsPNotify::build(YsArgument::likeVar('response')),'response')
      )
  )
?>

About

Demos

jQueryUI

Plugins Support - New!

Components - New!

Project Developed by The YepSua Team
SourceForge.net