ASP.NET to prevent repeated submission scripts

xiaoxiao2021-03-06  77

Function _dopostback () {}; if (TypeOf ("__ dopostback") == "function") {_dopostback = __ dopostback; __dopostback = _dopostbacknew;}

Document.attachevent ("onmousemove", _ onmousemove; var _isposting = false; var_divmask = null;

Function _onmousemove () {if (_divmask) with (_divmask.RuntimeStyle) {left = event.clientX document.body.scrollleft-4; Top = Event.clienty Document.body.Scrolltop-4;}}

function _makeMask () {var div = document.createElement ( "DIV"); with (div.runtimeStyle) {position = "absolute"; zIndex = 999999; fontSize = "1px"; left = event.clientX document.body. ScrollLeft-4; TOP = Event.Clienty Document.body.Scrolltop-4; width = "8px"; height = "8px"; cursor = "wait"; backgroundColor = "gray"; filter = "alpha (Opacity = 10 ) ";} Try {document.body.insertadjacentelement (" beforeend ", div); div.οnblur = new function (" this.focus () "); div.focus ();} catch (x) {} IF _divmask) _divmask.removenode (true); _divmask = div;}

Function _dopostbacknew (sender, args) {if (_isposting) return Event.RETURNVALUE =! (event.cancelbubble = true);

Status = "Update page ..."; _dopostback (sender, args); _ISPOSTING = true; _makemask ();

Function _onFormSubmit () {if (_isposting) return Event.ReturnValue =! (event.cancelbubble = true);

转载请注明原文地址:https://www.9cbs.com/read-108698.html

New Post(0)