|
经检查一个服务器返回的浏览器客户端ID 需要关联
查看源代码 我想需要关联的就是红色部分
var i = 0;
153[/url] for (i = 0; i < frObj.length; i++) {
154[/url] strid = "{username:'" + frObj.username + "',usertype:'"
155[/url] + frObj.usertype
156[/url] + "',client:'"
157[/url] + frObj.client + "',"
158[/url] + "nickname:'" + frObj.nickname
159[/url] + "',cp:'" + frObj.cp + "', vip:'" + frObj.vip + "',roomid:'"
160[/url] + frObj.roomid + "',roomnum:'" + frObj.roomnum + "',photo:'"
161[/url] + frObj.photo + "',check:'" + frObj.check + "',dayNum:'"
162[/url] + frObj.dayNum + "',monthNum:'" + frObj.monthNum + "',mobile:'"
163[/url] + frObj.mobile + "',intro:'" + frObj.intro + "',port:'" + frObj.port
164[/url] + "',postid:'" + frObj.postid + "'}"
服务器里面myelipse找到的代码
for (i = 0; i < message.data.length; i++) {
var struser = message.data;
struser=decodeURI(struser);
var user = eval('(' + struser + ')');
if (user.username == room._username) {
room._user2 = room._user.substring(0, room._user
.indexOf(',')
+ 1)
+ "client:'"
+ user.client
+ "',"
+ room._user.substring(room._user.indexOf(',') + 1);
room._fromClient = user.client;
我的关联函数是这样设的
web_reg_save_param("{client_name}",
"LB=',client:",
"RB=,",
"search=body",
LAST);
其实左右边界值我取了很多了 但还是报错:
Action.c(144): Error -26377: No match found for the requested parameter "{client_name}". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-26377]
Action.c(144): web_custom_request("connect") highest severity level was "ERROR", 130 body bytes, 136 header bytes [MsgId: MMSG-26388]
[ 本帖最后由 kratexi 于 2010-7-3 16:41 编辑 ] |
|