Categories | Question details Back To List | ||
dhtmlx windows issues Hi ,
Following is the code for my window issue.please see thru it.
Loginp.htm which creates window <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
} </script> </body> </html>
Loginct.aspx which acts as container to user control <% @ Page Language="C#" AutoEventWireup="true" CodeBehind="Loginct.aspx.cs" Inherits="com.northgate_is.iim.webeims.ui.Loginct" %><% @ register tagprefix="uclog" tagname="LoginModule" src="~/Loginuc.ascx" %><! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">< html xmlns="http://www.w3.org/1999/xhtml" >< head runat="server"> <script type="text/javascript"> function mainpageload(){ startpolling(); initmodules(); } function startpolling(){ try{ StartLoginModulePolling(); } catch(e){ } } function initmodules(){ try{ try { initLoginModule();} catch(e) { }} catch(e){ // doing nothing} } </script></ head>< body onload="mainpageload()"> <form id="frm" runat="server" action="Loginct.aspx"> <asp:ScriptManager ID="LoginScriptManager" runat="server"> <Services> <asp:ServiceReference Path="~/BOService.asmx" /> </Services> </asp:ScriptManager> <div> <uclog:LoginModule ID="loginid" runat="server" /> </div> </form></ body></ html>
Loginuc.ascx is the user control having button <% @ Control Language="C#" AutoEventWireup="true" CodeBehind="Loginuc.ascx.cs" Inherits="com.northgate_is.iim.webeims.ui.Loginuc" %>< title></title>< script type="text/javascript">var ISstate = 1;function FetchLoginDetails(){ alert("Hi"); } function StartLoginModulePolling(){ setTimeout( "StartLoginModulePolling();", 10000); // if the polling is switched on if (ISstate == 1){ //alert(); //FetchLoginDetails();} } </ script>< table cellpadding="0" cellspacing="0" width="100%">< input type="hidden" id="TokenId" />< tr> <td align="left" colspan="2"><label id="lblErr" style="color: #FF0000" ></label></td></ tr>< tr> <td align="left"><label id="lblUsername">Username</label></td><td align="left"><input type="text" id="txtUserName" /> </td></ tr>< tr> <td align="left"><label id="lblPwd">Password</label></td><td align="left"><input type="password" id="txtPassword" /> </td></ tr>< tr> <td align="left"><label id="lblRole">Role</label></td> <td align="left"><select id="ddlRole" style="width: 200px" ></select></td></ tr>< tr> <td align="left"></td> <td align="left"><input type="checkbox" id="chkchngpwd"/><label>Change Password</label></td></ tr>< tr> <td align="center" colspan="2" > <button id="btnLogin" onclick="javascript:FetchLoginDetails();" >Login</button> <button id="btnContinue" >Continue</button> </td></ tr></ table>So in above user control onclick event of btnlogin is not able to call javascript function.Some javascript error is shown but can trace the exact error. Answer posted by Support on Nov 05, 2008 05:36 We run your demo and there were no problems winth windows found. Error when clicking on button is: FetchLoginDetails is not defined If change <button id="btnLogin" onclick="javascript:FetchLoginDetails();" >Login</button> with <button id="btnLogin" onclick="alert(1);" >Login</button> all work fine. Answer posted on Nov 05, 2008 06:00 Thanks... |