Jump to content

ankanoju

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ankanoju

  1. Bruce, Can you update this page with working code? http://totalchoicehosting.com/help/id38.htm
  2. This works for me. Replace the ?'s with the domain and server number. <html> <head> <script language="JavaScript" type="text/javascript"> <!-- function add_domain() { var sLogin=document.forms[0].login_username.value; if ((sLogin.indexOf('@') == -1) && (sLogin != "")) { document.forms[0].login_username.value = document.forms[0].login_username.value + "@?????.com"; } } function squirrelmail_loginpage_onload() { document.forms[0].js_autodetect_results.value = '1'; } // --> </script> </head> <body onLoad="self.focus();document.forms[0].login_username.focus()"> <form method="post" action="http://server??.totalchoicehosting.com/sqmail/src/redirect.php"> <input type="hidden" name="js_autodetect_results" value="0"> User: <input type="text" onBlur="add_domain();" name="login_username" size="20"><br><br> Password: <input type="password" name="secretkey" size="20"><br><br> <input type="submit" value="Login"> </form> </body> </html>
  3. I understand the need for the domain. My question is if it is possible to have the domain be defaulted in the javascript so that the user doesn't have to enter it.
  4. PAAT, You almost had it. The instructions on this page are incorrect. http://totalchoicehosting.com/help/id38.htm You had: <form method="post" action="http://your.host.com/mail/src/redirect.php"> Change the "/mail/" to "/sqmail/". I also think you have to use the host name, not your domain name. It will look like this: <form method="post" action="http://server??.totalchoicehosting.com/sqmail/src/redirect.php"> Does anyone know how to get this javascript to auto append the domain to the username?
  5. Has a solution ever been found for this question? Removing the need for a domain name would add a "professional" touch to the webmail interface.
×
×
  • Create New...