Submit Search
Upload
AJAX Form API Commands
•
0 likes
•
169 views
AI-enhanced title
Ksenia Rogachenko
Follow
Выступление на DrupalCafe#7@Omsk от сибирского сообщества друпаллеров НП "ДрупалСиб".
Read less
Read more
Internet
Slideshow view
Report
Share
Slideshow view
Report
Share
1 of 10
Download now
Download to read offline
Recommended
Михаил Крайнюк. Form API: AJAX-commands
Михаил Крайнюк. Form API: AJAX-commands
DrupalSib
Drupal Form Api
Drupal Form Api
Amit Kumar Singh
Advanced Drupal Views: Theming your View
Advanced Drupal Views: Theming your View
Ryan Cross
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
Jesper van Engelen
Refactoring using Codeception
Refactoring using Codeception
Jeroen van Dijk
COMP2021 Final Project - LightHTML
COMP2021 Final Project - LightHTML
Conrad Lo
Code moi une RH! (PHP tour 2017)
Code moi une RH! (PHP tour 2017)
Arnaud Langlade
Dolibarr - information for developers and partners - devcamp Pau 2019
Dolibarr - information for developers and partners - devcamp Pau 2019
Laurent Destailleur
Recommended
Михаил Крайнюк. Form API: AJAX-commands
Михаил Крайнюк. Form API: AJAX-commands
DrupalSib
Drupal Form Api
Drupal Form Api
Amit Kumar Singh
Advanced Drupal Views: Theming your View
Advanced Drupal Views: Theming your View
Ryan Cross
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
WordCamp Geneva Presentation - Customising WordPress' Admin Panel - 19 Nov. 2016
Jesper van Engelen
Refactoring using Codeception
Refactoring using Codeception
Jeroen van Dijk
COMP2021 Final Project - LightHTML
COMP2021 Final Project - LightHTML
Conrad Lo
Code moi une RH! (PHP tour 2017)
Code moi une RH! (PHP tour 2017)
Arnaud Langlade
Dolibarr - information for developers and partners - devcamp Pau 2019
Dolibarr - information for developers and partners - devcamp Pau 2019
Laurent Destailleur
Gravity Forms Hooks & Filters
Gravity Forms Hooks & Filters
iamdangavin
2013 28-03-dak-why-fp
2013 28-03-dak-why-fp
Dmitriy Kiriyenko
WordPress overloading Gravityforms using hooks, filters and extending classes
WordPress overloading Gravityforms using hooks, filters and extending classes
Paul Bearne
HTML::FormHandler
HTML::FormHandler
bbeeley
Symfony2 Building on Alpha / Beta technology
Symfony2 Building on Alpha / Beta technology
Daniel Knell
Jquery ajax & form
Jquery ajax & form
Vinh Nguyễn Văn
Mojolicious
Mojolicious
Lenz Gschwendtner
Cloud Entwicklung mit Apex
Cloud Entwicklung mit Apex
Aptly GmbH
Advanced Custom Fields - Flexible Content
Advanced Custom Fields - Flexible Content
Norm Euker
DEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent Interface
Ctvrtkoncz
Building a Portfolio With Custom Post Types
Building a Portfolio With Custom Post Types
Alex Blackie
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Nikolaus Graf
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
Atwix
11. CodeIgniter vederea unei singure inregistrari
11. CodeIgniter vederea unei singure inregistrari
Razvan Raducanu, PhD
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Ruby - Design patterns tdc2011
Ruby - Design patterns tdc2011
Rafael Felix da Silva
Web development today
Web development today
Hesham Amin
WordPress REST API: Expert Advice & Practical Use Cases
WordPress REST API: Expert Advice & Practical Use Cases
Pantheon
Form API 3
Form API 3
Jeff Eaton
Introduzione JQuery
Introduzione JQuery
orestJump
Res epre17 19-23-13
Res epre17 19-23-13
EPRE
East_Side_Living_Oct16 (3)
East_Side_Living_Oct16 (3)
Keith Mathews
More Related Content
What's hot
Gravity Forms Hooks & Filters
Gravity Forms Hooks & Filters
iamdangavin
2013 28-03-dak-why-fp
2013 28-03-dak-why-fp
Dmitriy Kiriyenko
WordPress overloading Gravityforms using hooks, filters and extending classes
WordPress overloading Gravityforms using hooks, filters and extending classes
Paul Bearne
HTML::FormHandler
HTML::FormHandler
bbeeley
Symfony2 Building on Alpha / Beta technology
Symfony2 Building on Alpha / Beta technology
Daniel Knell
Jquery ajax & form
Jquery ajax & form
Vinh Nguyễn Văn
Mojolicious
Mojolicious
Lenz Gschwendtner
Cloud Entwicklung mit Apex
Cloud Entwicklung mit Apex
Aptly GmbH
Advanced Custom Fields - Flexible Content
Advanced Custom Fields - Flexible Content
Norm Euker
DEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent Interface
Ctvrtkoncz
Building a Portfolio With Custom Post Types
Building a Portfolio With Custom Post Types
Alex Blackie
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Nikolaus Graf
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
Atwix
11. CodeIgniter vederea unei singure inregistrari
11. CodeIgniter vederea unei singure inregistrari
Razvan Raducanu, PhD
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Eyal Vardi
Ruby - Design patterns tdc2011
Ruby - Design patterns tdc2011
Rafael Felix da Silva
Web development today
Web development today
Hesham Amin
WordPress REST API: Expert Advice & Practical Use Cases
WordPress REST API: Expert Advice & Practical Use Cases
Pantheon
Form API 3
Form API 3
Jeff Eaton
Introduzione JQuery
Introduzione JQuery
orestJump
What's hot
(20)
Gravity Forms Hooks & Filters
Gravity Forms Hooks & Filters
2013 28-03-dak-why-fp
2013 28-03-dak-why-fp
WordPress overloading Gravityforms using hooks, filters and extending classes
WordPress overloading Gravityforms using hooks, filters and extending classes
HTML::FormHandler
HTML::FormHandler
Symfony2 Building on Alpha / Beta technology
Symfony2 Building on Alpha / Beta technology
Jquery ajax & form
Jquery ajax & form
Mojolicious
Mojolicious
Cloud Entwicklung mit Apex
Cloud Entwicklung mit Apex
Advanced Custom Fields - Flexible Content
Advanced Custom Fields - Flexible Content
DEV Čtvrtkon #76 - Fluent Interface
DEV Čtvrtkon #76 - Fluent Interface
Building a Portfolio With Custom Post Types
Building a Portfolio With Custom Post Types
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Type Systems & Props Design - Exploring PropTypes, TypeScript, Flow & Reason
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
Сергей Иващенко - Meet Magento Ukraine - Цены в Magento 2
11. CodeIgniter vederea unei singure inregistrari
11. CodeIgniter vederea unei singure inregistrari
Template syntax in Angular 2.0
Template syntax in Angular 2.0
Ruby - Design patterns tdc2011
Ruby - Design patterns tdc2011
Web development today
Web development today
WordPress REST API: Expert Advice & Practical Use Cases
WordPress REST API: Expert Advice & Practical Use Cases
Form API 3
Form API 3
Introduzione JQuery
Introduzione JQuery
Viewers also liked
Res epre17 19-23-13
Res epre17 19-23-13
EPRE
East_Side_Living_Oct16 (3)
East_Side_Living_Oct16 (3)
Keith Mathews
[粉絲寶]2014點亮淘寶路台灣站_天天特價
[粉絲寶]2014點亮淘寶路台灣站_天天特價
粉絲寶創意策略有限公司 台灣淘寶大學
Donna Jones Resume 121115
Donna Jones Resume 121115
Donna Jones
O
O
MarciaMustapha
Anders Hartvig - petersborg
Anders Hartvig - petersborg
Association of Danish Museums / Organisationen Danske Museer
my_resume
my_resume
Sutheera (Sriracha) Chotechuang
flagpattern
flagpattern
Brandon Crenshaw
Maria Knudsen - en 1100-tals bispegård
Maria Knudsen - en 1100-tals bispegård
Association of Danish Museums / Organisationen Danske Museer
Tanweer warehouse management solution
Tanweer warehouse management solution
Arif Ubaid
Fcc narrow banding mandate for two way radios - by bearcom
Fcc narrow banding mandate for two way radios - by bearcom
james Anderson
SCI 256 Final Exam 2015 version
SCI 256 Final Exam 2015 version
carlottabenjamini
East Side_July16 (9)
East Side_July16 (9)
Keith Mathews
OCASE1
OCASE1
hadaf1
Thesis Paper
Thesis Paper
Christopher Willis
Dissertation Defense: Critical Success Factors for Knowledge Management
Dissertation Defense: Critical Success Factors for Knowledge Management
Curtis Conley
Informática aspectos generales de la asignatura
Informática aspectos generales de la asignatura
AuroraCM
Viewers also liked
(17)
Res epre17 19-23-13
Res epre17 19-23-13
East_Side_Living_Oct16 (3)
East_Side_Living_Oct16 (3)
[粉絲寶]2014點亮淘寶路台灣站_天天特價
[粉絲寶]2014點亮淘寶路台灣站_天天特價
Donna Jones Resume 121115
Donna Jones Resume 121115
O
O
Anders Hartvig - petersborg
Anders Hartvig - petersborg
my_resume
my_resume
flagpattern
flagpattern
Maria Knudsen - en 1100-tals bispegård
Maria Knudsen - en 1100-tals bispegård
Tanweer warehouse management solution
Tanweer warehouse management solution
Fcc narrow banding mandate for two way radios - by bearcom
Fcc narrow banding mandate for two way radios - by bearcom
SCI 256 Final Exam 2015 version
SCI 256 Final Exam 2015 version
East Side_July16 (9)
East Side_July16 (9)
OCASE1
OCASE1
Thesis Paper
Thesis Paper
Dissertation Defense: Critical Success Factors for Knowledge Management
Dissertation Defense: Critical Success Factors for Knowledge Management
Informática aspectos generales de la asignatura
Informática aspectos generales de la asignatura
Similar to AJAX Form API Commands
D8 Form api
D8 Form api
Samuel Solís Fuentes
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
camp_drupal_ua
Bag Of Tricks From Iusethis
Bag Of Tricks From Iusethis
Marcus Ramberg
introduction to Django in five slides
introduction to Django in five slides
Dan Chudnov
Tidy Up Your Code
Tidy Up Your Code
Abbas Ali
WordPress REST API hacking
WordPress REST API hacking
Jeroen van Dijk
Min-Maxing Software Costs
Min-Maxing Software Costs
Konstantin Kudryashov
laravel tricks in 50minutes
laravel tricks in 50minutes
Barang CK
50 Laravel Tricks in 50 Minutes
50 Laravel Tricks in 50 Minutes
Azim Kurt
php tutorial.ppt
php tutorial.ppt
PohuiPank
php tutorial.ppt
php tutorial.ppt
ElieNGOMSEU
WordPress REST API hacking
WordPress REST API hacking
Jeroen van Dijk
Dutch PHP Conference - PHPSpec 2 - The only Design Tool you need
Dutch PHP Conference - PHPSpec 2 - The only Design Tool you need
Kacper Gunia
Zero to SOLID
Zero to SOLID
Vic Metcalfe
JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼
Sukjoon Kim
Php my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.net
Programmer Blog
Introduction to Zend Framework web services
Introduction to Zend Framework web services
Michelangelo van Dam
Php functions
Php functions
JIGAR MAKHIJA
PHPSpec - the only Design Tool you need - 4Developers
PHPSpec - the only Design Tool you need - 4Developers
Kacper Gunia
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
Mateusz Zalewski
Similar to AJAX Form API Commands
(20)
D8 Form api
D8 Form api
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
Bag Of Tricks From Iusethis
Bag Of Tricks From Iusethis
introduction to Django in five slides
introduction to Django in five slides
Tidy Up Your Code
Tidy Up Your Code
WordPress REST API hacking
WordPress REST API hacking
Min-Maxing Software Costs
Min-Maxing Software Costs
laravel tricks in 50minutes
laravel tricks in 50minutes
50 Laravel Tricks in 50 Minutes
50 Laravel Tricks in 50 Minutes
php tutorial.ppt
php tutorial.ppt
php tutorial.ppt
php tutorial.ppt
WordPress REST API hacking
WordPress REST API hacking
Dutch PHP Conference - PHPSpec 2 - The only Design Tool you need
Dutch PHP Conference - PHPSpec 2 - The only Design Tool you need
Zero to SOLID
Zero to SOLID
JavaScript on Rails 튜토리얼
JavaScript on Rails 튜토리얼
Php my sql - functions - arrays - tutorial - programmerblog.net
Php my sql - functions - arrays - tutorial - programmerblog.net
Introduction to Zend Framework web services
Introduction to Zend Framework web services
Php functions
Php functions
PHPSpec - the only Design Tool you need - 4Developers
PHPSpec - the only Design Tool you need - 4Developers
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
Recently uploaded
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Lucknow
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
aditipandeya
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
3sw2qly1
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
Fs
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
anamikaraghav4
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
furqan222004
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
aditipandeya
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
rehmti665
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
Thierry TROUIN ☁
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
girls4nights
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
ishabajaj13
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
sonalikaur4
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
Damian Radcliffe
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
Fs
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
Fs
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
vipmodelshub1
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural in villages of india
imessage0108
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
Fs
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewing
bigorange77
Recently uploaded
(20)
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(CC毕业证书)美国美国社区大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Complet Documnetation for Smart Assistant Application for Disabled Person
Complet Documnetation for Smart Assistant Application for Disabled Person
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural in villages of india
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
Denver Web Design brochure for public viewing
Denver Web Design brochure for public viewing
AJAX Form API Commands
1.
Form API AJAX-commands
2.
OK Form API
3.
OK OK
4.
$form['offer_type'] = array( '#type'
=> ‘select', '#title' => t('Select please'), '#options' => array( ... ), '#ajax' => array( 'callback' => 'name_of_function', 'wrapper' => 'html-id-of-wrapper', ), ); - Toyota - Renault - Porsche - Выберите - Поздравляем! Вам в подарок: Porsche 911 Carrera
5.
function name_of_function($form, $form_state)
{ $html = ‘<div>’ . t(‘Hello!’) . ‘</div>’; return $html; } 1. HTML Hello!
6.
function name_of_function($form, $form_state)
{ $cmd = array(); $cmd[] = ajax_command_replace(NULL, $output); $cmd[] = ajax_command_prepend(NULL, theme('status_messages')); return array( '#type' => 'ajax', '#commands' => $cmd, ); } 2. Commands Hello! Готово!
7.
AJAX-commands ajax_command_before ajax_command_changed ajax_command_css ajax_command_data ajax_command_html ajax_command_insert ajax_command_invoke ajax_command_prepend ajax_command_remove ajax_command_replace ajax_command_restripe ajax_command_settings ajax_command_after ajax_command_alert ajax_command_append
8.
Нужно больше?
9.
Собственные AJAX-commands (function($) { Drupal.ajax.prototype.commands.my_func
= function(ajax, response, status) { document.title = response.title; } } (jQuery)); $cmd = array(); $cmd[] = array(‘command‘ => ‘my_func', ‘title‘ => $page_title . ‘!!!‘); $cmd[] = ajax_command_replace(NULL, $output); return array( '#type' => 'ajax', '#commands' => $cmd, );
10.
Спасибо! Крайнюк Михаил kraynuk.m@i20.biz
Download now