RSS
热门关键字:  数据挖掘  数据仓库  商业智能  搜索引擎  人工智能
当前位置 :| 首页>编程技术>UML教程>

Ajax即时实现服务端数据验证

来源: 作者: 时间:2007-01-27 点击:

14 14 try {
15 15 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
16 16 } catch (E) {
17 17 xmlhttp = false;
18 18 }
19 19 }
20 20 @else
21 21 xmlhttp = false;
22 22 @end @*/
23 23 if( !xmlhttp && typeof XMLHttpRequest != "undefined" )
24 24 {
25 25 try
26 26 {
27 27 xmlhttp = new XMLHttpRequest();
28 28 }
29 29 catch( e )
30 30 {
31 31 xmlhttp = false;
32 32 }
33 33 }
34 34 return xmlhttp;
35 35 }
36 36 CallBackObject.prototype.DoCallBack = function( eventTarget,eventArgument)
37 37 {
38 38 var theData = "";
39 39 var theform = document.forms[0];
40 40 var thePage = window.location.pathname + window.location.search;
41 41 var eName = "";
42 42 theData = "__EVENTTARGET=" + escape(eventTarget.split("$").join(":")) + "&";
数据挖掘实验室
43 43 theData += "__EVENTTARGUMENT=" + eventArgument + "&";
44 44
45 45 theData += "__VIEWSTATE=" + escape(theform.__VIEWSTATE.value).replace(new RegExp("\+","g"),"%2b") + "&";
46 46 theData += "IsCallBack=true&";
47 47 for(var i = 0; i < theform.elements.length; i++)
48 48 {
49 49 eName = theform.elements[i].name;
50 50 if( eName & eName != "")
51 51 {
52 52 if( eName == "__EVENTARGET"    eName == "__EVENTARGUMENT"    eName == "__VIEWSTATE" )
53 53 {
54 54 }

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
匿名?
热点关注
相关文章