PageSourceSearch

https://www.rubberasia.com/system/resource/js/formfunc.js

js rubberasia.com collected 2026-10-02 19:09:51 UTC 1,356 bytes, 49 lines download raw bytes

1/*按钮之类的提交时disabled, 然后提交完成自动enable; 用在提交动作发生前, 如 onsubmit 中
2用法举例: 参见本目录formfuncdemo.htm
3*/
4function VsbFormFunc()
5{
6    var _this = this;
7    _this.disableAutoEnable = function(o)
8    {
9        o.disabled=true;
10        setTimeout(function(){_this.enableOnComplete(o);}, 500);
11    }
12    
13    _this.enableOnComplete = function(o)
14    {
15       if(window.document.readyState=='complete')
16       {
17          o.disabled = false;
18       }
19       else
20       {
21           setTimeout(function(){_this.enableOnComplete(o);}, 500);
22       }
23    }        
24};
25function changebase64_util(nameList,formName)
26{
27    if(!!nameList && nameList.length>0)
28    {
29        for(var i=0;i<nameList.length;i++)
30        {
31            var realName = nameList[i];
32            var tmpName = realName+"_temp"; 
33            try{
34                var tmpNameObj = eval("document."+formName+"."+tmpName);
35                var nameObj  = eval("document."+formName+"."+realName)
36                if(tmpNameObj &&nameObj) 
37                {
38                    nameObj.value=new  Base64().encode(tmpNameObj.value);
39                    new VsbFormFunc().disableAutoEnable(tmpNameObj);
40                }
41             }catch (e){}
42        }    
43    }
44    return true;
45}
46
47
48
49

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.