SPServices 备忘 修改list记录

1 function UserProfile_Save()
2 {
3 var NAME = document.getElementById("TextBoxName").value;
4 var EMAIL = document.getElementById("TextBoxEmail").value;
5 $().SPServices({
6 operation: "UpdateListItems",
7 listName: "z_user",
8 async: false,
9 ID: UserProfile_UserID,
10 valuepairs: [
11 ["NAME", NAME],
12 ["EMAIL", EMAIL]
13 ],
14 completefunc: function (xData, Status) {
15 if(Status == "success")
16 {
17 UserProfile_aspx();
18 }
19 else
20 {
21 alert("Save failed, please try again. If this occurs every time, please contact administrator for help.");
22 }
23 }
24 });
25 //alert("save click!");
26 }
posted @ 2011-05-17 16:33  lotteyang  阅读(322)  评论(0编辑  收藏  举报