Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 7th, 2004, 06:53 PM
ShoT ShoT is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: NYC
Posts: 1 ShoT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Login Page

Hey guys, Im a rather new addition to your forum, and stopped by to see if I could get some help in a topic rather new to me. I'm doing a website for the company I work for, and they use a ASP based "program" called eImmigration, accessible by both company workers and clients anywhere in the world. My boss requested that I implement a login window on the site so instead of going to the "program" login page, they could login directly from our site. Now, my first idea was to do it through SSI and the include variable, but it's too big because it loads all the unneccessary graphics and text of the program, and all I want is a simple Login Name and Password window to login, I was thinking about modyfing the login page then using SSI, but when I modify the page in a way I think is right, it renders it unusable. Here's the code for the login page and the link to the site:

Quote:
<%Response.Expires=0%>
<!--#include file="lib/vbcomn.asp"-->
<script LANGUAGE="javascript">
function chklogin() {
if (event.keyCode != 13) return;
document.frmLogin.submit();
}
function SetFocusAtLoad() {
if (screen.width<640 || screen.height<480)
alert('You need a minimum of screen resolution of 640 X 480 to run this application.');
else if (screen.width>= 640 && screen.width<1024) {
if (screen.height<768)
alert('This application is best run at screen resolution of 1024 X 768.\nPlease change your screen resolution accordingly.');
}
document.frmLogin.userid.focus();
}
function myreset() { document.frmLogin.reset(); document.frmLogin.userid.focus(); }
function registerme_JS() {
/*var sAny, nWidth=0, nHeight=0;
nWidth=screen.width-300;
nHeight=screen.height-200;
sAny='dialogHeight:' + nHeight + 'px;dialogWidth:' + nWidth + 'px;center:yes;resizable:yes;status:yes;';
showModalDialog('lfregn.asp', "", sAny); */
var sAny,nWidth=screen.width-500,nHeight=screen.height-175;
sAny='left=250,top=50,width='+nWidth+',height='+nH eight;
window.open('lfregn.asp','RegisterWin','status=yes ,toolbar=no,scrollbars=yes,personalbar=no,maximize =no,resizable=yes,'+sAny);
}
function onlogin() { document.frmLogin.submit(); }
function onhelp() { window.open('help/Login/Login_Help.htm','HelpWin1','height=400,width=710,l eft=100,top=100,menubar=0,resizable=yes,status=yes ,scrollbars=1,toolbar=0'); }
function ondemo() { window.open('demo/eimmigration.html','DemoWin','height=500,width=875 ,left=85,top=70,menubar=0,resizable=yes,status=yes ,scrollbars=0,toolbar=0'); }
function helpme() { window.open('help/Login/Login_Help.htm','HelpWin2','height=500,width=650,l eft=150,top=70,menubar=0,resizable=yes,status=yes, scrollbars=0,toolbar=0'); }
function UpdComponents() {
var sAny,nWidth=screen.width-450,nHeight=screen.height-400;
sAny='left=225,top=200,width=' + nWidth + ',height=' + nHeight;
window.open('updcomps.asp','UpdComps','status=yes, toolbar=no,scrollbars=yes,personalbar=no,maximize= no,resizable=yes,'+sAny);
}
</script>
<script language="VBSCRIPT">
sub registerme()
server.transfer "lfregn.asp"
end sub
</script>
<html>
<head><title>eimmigration</title></head>
<body bgcolor="#3171B5" TEXT="#000000" LINK="#993366" VLINK="#660066" ALINK="#FF99FF" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" onload="SetFocusAtLoad()" oncontextmenu="return false">
<table width="947" height="582" border="0" cellspacing="0" cellpadding="0" background="images/background.gif" style="font-family:Arial;font-size:9px;">
<%for nIndx=1 to 23%><tr><td>&nbsp;</td></tr><%next%>
<tr>
<td height="100%" align="center" valign="top">
<table BORDER="0" cellspacing="1" style="font-family:Arial;font-size:9px;" align="center">
<tr>
<td VALIGN="TOP" WIDTH="700" align="center">
<% strReturn=UCase(Request("Bad"))
'If strReturn="True" then Response.Write "<Font color='Red'>Invalid Login name and/or Password, Try again.</Font><BR>"
If strReturn="TRUE" then
if UCase(Request("Expiration")) <> "TRUE" then
AlertMsg("Invalid Login name and/or Password, Try again.")
else
AlertMsg(Request("sAcExpMsg"))
end if
end if%>
<form name="frmLogin" ACTION="checklogin2.asp" METHOD="POST">
<table BORDER="0" style="font-family:Arial;font-size:9px;">
<tr><td>&nbsp;</td></tr>
<tr><td align="right"><b>User&nbsp;name:</b></td><td><input TYPE="Text" NAME="userid" VALUE="<%=request("userid")%>" SIZE="12" maxlength="25"></td></tr>
<tr><td align="right"><b>Password:</b></td><td><input TYPE="Password" NAME="Password" VALUE="<%=request("Password")%>" SIZE="12" maxlength="20"></td></tr>
</table>
</form>
<map name="logbtns">
<area alt coords="2,0,101,20" href="javascript:onlogin()">
<area alt coords="107,0,200,19" href="javascript:registerme_JS()">
<area alt coords="208,0,291,18" href="javascript:ondemo()">
</map>
<img src="images/buttons2.gif" border="0" usemap="#logbtns" WIDTH="292" HEIGHT="20">
</td>
</tr>
<tr>
<td style="color:white;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!--Need help?, <A href="help/Login/Login_Help.htm">Click here</a>-->
Need help?, <a href="javascript:helpme()" title onMouseOut="window.status="";return true;" onMouseOver="window.status="";return true;">Click here</a>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr><td style="font-size:18px;color:white;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Having problems?, <a href="javascript:UpdComponents()" title onMouseOut="window.status="";return true;" onMouseOver="window.status="";return true;">Update eImmigration Components.</a>
</td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<script language="JavaScript">document.frmLogin.submit();</script>

The link is http://68.161.240.152/eImmigration/default2.asp



Thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Login Page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway