<span data-action="popover">Я — хозяин формы</span>
$(document).on('click', '[data-action="popover"]', SR_startPopOver);
function onloadFunction(){window.setTimeout(SR_startPopOver, 0);}window.onload = onloadFunction;document.body.onload = onloadFunction;document.onload = onloadFunction;
И еще я думал может можно стилями это все без джаваскрипта
X-Requested-With="XMLHttpRequest"
$.ajax({
url: 'php/Register.php',
type: 'POST',
data: {
log: 'petya' + (Math.random() * 10e6 + '').slice(0, 6),
pass: 'thegod' + (Math.random() * 10e6 + '').slice(0, 6),
blog: 'godcoder',
desc: 'i like monkey'
},
success: function() {
console.log('success', arguments);
},
error: function() {
console.log('error', arguments);
},
complete: function() {
console.log('complete', arguments);
}
}).done(function() {
console.log('done', arguments);
});
this.$ = this.$;