html a data app,html - <a data-method='something' href ... - POSTs? - Stack Overflow

no it is not a standard, as long as you say that RAILS Jquery_ujs.js is not a standard.

Rails/Jquery is doing this Magic:

if you take a look here all the magic is gone ...:

$.rails = rails = {

// Link elements bound by jquery-ujs

linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]',

// Button elements bound by jquery-ujs

buttonClickSelector: 'button[data-remote], button[data-confirm]',

// Select elements bound by jquery-ujs

inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',

// Form elements bound by jquery-ujs

formSubmitSelector: 'form',

// Form input elements bound by jquery-ujs

formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])',

// Form input elements disabled during form submission

disableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',

// Form input elements re-enabled after form submission

enableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',

// Form required input elements

requiredInputSelector: 'input[name][required]:not([disabled]),textarea[name][required]:not([disabled])',

// Form file input elements

fileInputSelector: 'input[type=file]',

// Link onClick disable selector with possible reenable after remote submission

linkDisableSelector: 'a[data-disable-with], a[data-disable]',

// Button onClick disable selector with possible reenable after remote submission

buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]',

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值