on() { return new ActiveXObject('Microsoft.XMLHTTP'); } ) || null; }, post: function(sUrl, sArgs, bAsync, fCallBack, errmsg) { var xhr2 = this.init(); xhr2.onreadystatechange = function() { if (xhr2.readyState == 4) { if (xhr2.responseText) { if (fCallBack.constructor == Function) { fCallBack(xhr2); } } else { //alert(errmsg); } } }; xhr2.open('POST', encodeURI(sUrl), bAsync); xhr2.setRequestHeader('Content-Length', sArgs.length); xhr2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr2.send(sArgs); }, get: function(sUrl, bAsync, fCallBack, errmsg) { var xhr2 = this.init(); xhr2.onreadystatechange = function() { if (xhr2.readyState == 4) { if (xhr2.responseText) { if (fCallBack.constructor == Function) { fCallBack(xhr2); } } else { alert(errmsg); } } }; xhr2.open('GET', encodeURI(sUrl), bAsync); xhr2.send('Null'); } } function RndNum(n) { var rnd = ""; for (var i = 0; i < n; i++) rnd += Math.floor(Math.random() * 10); return rnd; } function SetNum(item) { var url = "../journal/senddownloadnum.aspx"; var args = "paperid=" + item; url = url + "?" + args + "&rand=" + RndNum(4); window.setTimeout("show('" + url + "')", 500); } function show(url) { var callback = function(xhrj) { } ajaxj.get(url, true, callback, "try"); } function SetSearchLink(item) { var url = "../journal/recordsearchinformation.aspx"; var skid = $(":hidden[id$=HiddenField_SKID]").val(); var args = "skid=" + skid; url = url + "?" + args + "&urllink=" + item; window.setTimeout("showSearchUrl('" + url + "')", 300); } function showSearchUrl(url) { var callback2 = function(xhr2) { } ajax2.get(url, true, callback2, "try"); }
Home > Journals > Articles