jQuery4PHP Current Release: v1.7.0 - Stable

jQuery version: v1.8.2

jQueryUI version: Stable (1.8.24: jQuery 1.3.2+)

jQuery4php API

Events

Hide navigator Hide source code

These methods are used to register behaviors to take effect when the user interacts with the browser, and to further manipulate those registered behaviors.

TriggerHandler

Execute all handlers attached to an element for an event.
<div>
<input type="button" value="Focus" id="btnTrigger2" />
For Trigger <br>
<input type="button" value="Focus" id="btnTriggerHandler" />
For TriggerHandler <br>
<br>
<input type="text" value="" id="txtFocus2" />
<p id="logTriggerHandler" style="color:green"></p>
<?php  echo YsJQuery::newInstance()
              ->onFocus()
              ->in('#txtFocus2')
              ->execute(
                YsJQuery::append('Hocus Focus ')->in('#logTriggerHandler')
              ) ?>
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnTrigger2')
  ->execute(
    YsJQuery::trigger()
      ->in('#txtFocus2')
      ->eventType(YsJQueryConstant::FOCUS_EVENT)
  )
?>
<?php
echo
YsJQuery::newInstance()
  ->onClick()
  ->in('#btnTriggerHandler')
  ->execute(
    YsJQuery::triggerHandler()
      ->in('#txtFocus2')
      ->eventType(YsJQueryConstant::FOCUS_EVENT)
  )
?>
</div>

For Trigger
For TriggerHandler

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