From: <fza...@us...> - 2005-11-30 22:32:06
|
Update of /cvsroot/struts/ajaxchat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19377 Modified Files: lobby.jsp room.jsp Log Message: Index: lobby.jsp =================================================================== RCS file: /cvsroot/struts/ajaxchat/lobby.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lobby.jsp 30 Nov 2005 22:04:28 -0000 1.2 --- lobby.jsp 30 Nov 2005 22:31:58 -0000 1.3 *************** *** 81,85 **** // One minor problem that if (sendAJAXRequest) { ! xhrLobbyUpdateStats.open("post", target, true); xhrLobbyUpdateStats.send(null); } --- 81,85 ---- // One minor problem that if (sendAJAXRequest) { ! xhrLobbyUpdateStats.open("get", target, true); xhrLobbyUpdateStats.send(null); } Index: room.jsp =================================================================== RCS file: /cvsroot/struts/ajaxchat/room.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** room.jsp 30 Nov 2005 22:04:28 -0000 1.2 --- room.jsp 30 Nov 2005 22:31:58 -0000 1.3 *************** *** 103,107 **** target = "<html:rewrite action="ajaxListUsersInRoom" />"; // Go ahead and fire off the request, no payload to send. ! xhrListUsersInRoom.open("post", target, true); xhrListUsersInRoom.send(null); } catch(e) { --- 103,107 ---- target = "<html:rewrite action="ajaxListUsersInRoom" />"; // Go ahead and fire off the request, no payload to send. ! xhrListUsersInRoom.open("get", target, true); xhrListUsersInRoom.send(null); } catch(e) { *************** *** 172,176 **** target = "<html:rewrite action="ajaxGetMessages" />"; // Go ahead and fire off the request, no payload to send. ! xhrGetMessages.open("post", target, true); xhrGetMessages.send(null); } catch(e) { --- 172,176 ---- target = "<html:rewrite action="ajaxGetMessages" />"; // Go ahead and fire off the request, no payload to send. ! xhrGetMessages.open("get", target, true); xhrGetMessages.send(null); } catch(e) { *************** *** 296,300 **** // technically, the payload was appended to the URI as a query // string. In this case that was probably the easiest way to go. ! xhrPostMessage.open("post", target, true); xhrPostMessage.send(null); // Some UI niceness: clear what was just sent and set focus to the --- 296,300 ---- // technically, the payload was appended to the URI as a query // string. In this case that was probably the easiest way to go. ! xhrPostMessage.open("get", target, true); xhrPostMessage.send(null); // Some UI niceness: clear what was just sent and set focus to the |