Ajax Command Invoke Chain

Categories

Component ID

2164433

Component name

Ajax Command Invoke Chain

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

550

Component created

Component changed

Component body

Synopsis


ajax command invoke chain functionality

Ajax command invoke, that chains calls.

Adds the new command ajax_command_invoke_chain(), that works pretty much like
ajax_command_invoke(), but with the chance to chain jQuery method calls.

It receives two things: the selector and a chain of methods to apply to selected data. The chain is an array, where every item can be a string, when the method doesn't need additional arguments, or an array, where the first item will be the method name, and the rest its arguments. Note that sending an array with just one element is the same as passing just a string value instead.

See included ajax_command_invoke_chain_example module for usage examples.

Dependencies

Drupal :)

Credits

Current maintainers:
* Daniel Dalgo (dalguete) - https://drupal.org/user/142457