|
js_post_script
js_post_script
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<?php
post: function(url, query, options) {
if (url.substr(0, 1) != '/' && url.substr(0, 4) != 'http'){ url = '/' + url; }
var o = extend( {_captcha: false, _box: false}, options || {} ),
q = extend({al: o.frame ? -1 : 1}, query);
if (o.progress) { if (!o.showProgress) { o.showProgress = show.pbind(o.progress); } if (!o.hideProgress) { o.hideProgress = hide.pbind(o.progress); } }
if (o.loader) { o.showProgress = function() { boxRefreshCoords(boxLoader); show(boxLoader); show(boxLayerWrap); } o.hideProgress = function() { hide(boxLoader); hide(boxLayerWrap); } } return ajax._post(url, q, o); },
?>
|
|