<div önunload="Leave()"> <input id="hdnRoomID" type="hidden" name="hdnRoomID" runat="server"/> <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True" EnablePageMethods="True"> <Scripts> <asp:ScriptReference Path="scripts.js" /> </Scripts> </asp:ScriptManager> <table cellpadding="0" cellspacing="0"> <tr> <td width="80%"> <asp:textbox runat="server" TextMode="MultiLine" id="txt" style="Width: 690px; HEIGHT: 260px" rows="16" Columns="79" ></asp:textbox> <br /> <asp:TextBox id="txtMsg" Width="400" Runat="server"></asp:TextBox> <input id="btn" onclick="button_clicked()" type="button" value="SEND" /> </td> <td width="20%" rowspan="2" valign="top"> Room Members <br /> <asp:ListBox runat="server" Width="100" ID="lstMembers" Enabled="false" Height="249px"></asp:ListBox> </td> </tr> </table> </div>
function button_clicked() { PageMethods.SendMessage($get("txtMsg").value, $get("hdnRoomID").value, UpdateMessages, errorCallback); $get("txtMsg").value = ""; $get("txt").scrollIntoView("true"); } function clickButton(e, buttonid) { var bt = document.getElementById(buttonid); if (typeof bt == 'object') { if (navigator.appName.indexOf("Netscape") > (-1)) { if (e.keyCode == 13) { bt.click(); return false; } } if (navigator.appName.indexOf("Microsoft Internet Explorer") > (-1)) { if (event.keyCode == 13) { bt.click(); return false; } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)