Hi,
I am new to javascript, but have been programming in C for awhile. I am currently trying to get a page to reload after a password has gone through, in order to trigger another event, however, I cannot figure out the code. This code was generated by a program my company is using for survey tracking. I kind of got thrown into this (the he's good with computers syndrome) and I have NO clue what to do... please help if possible. Here is the source from the page
<HTML>
<HEAD>
<title></title>
<META content="" name=Descriptio n>
<LINK rel="stylesheet " href='/LWC_00173/css/173_2.css'>
</head>
<script language="JavaS cript" src="js/basic.js"></script>
<script language="JavaS cript">
function setFocus()
{
document.invitF orm.invitLogin. focus();
/* ex
form1.zipcode.f ocus();
*/
}
function validationInvit (invForm, required)
{
//alert('validati onInvit');
var appName = getBrowserName( );
var fields1 = new Array (3)
fields1[0] = invForm.invitLo gin.value
fields1[1] = invForm.invitLo gin.value.lengt h
var fieldName = new Array (3)
fieldName[0] = 'Email';
caution = 'Please enter';
var err = 0;
var alertColumn ='Please enter';
var Error1 = 'Please complete all fields';
var Error2 = 'Email address is invalid';
var Error3 = 'Invalid Password';
if ((fields1[1] == 0) && required) {
err = 1;
alertColumn += " "+fieldName[0]+" ";
} else {
if (!validateEmail (fields1[0], required)) {
err = 2;
}
// if(fields1[0].indexOf("@") == -1){
// }
}
//alert ('loginType=['+invForm.login Type.value+']');
if(appName == 'MSIE')
{
if(err == 1)
{
msg.innerText = Error1;
return false;
}
else if(err ==2)
{
msg.innerText = Error2;
return false;
}
else
{
invForm.submit( );
return true;
}
}
else
{
if(err == 1)
{
alert(convertAl ert(alertColumn , document.tmpEdi tbox));
return false;
}
else if(err == 2)
{
//alert("Error : Email address is invalid (must have '@' in the email address).")
alert(convertAl ert(Error2, document.tmpEdi tbox));
return false;
}
else
{
invForm.submit( );
return true;
}
}
}
</script>
<BODY CLASS=body-background LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 >
<IFRAME NAME="tmpEditbo x" style="visibili ty: hidden;" height="1"></IFRAME>
<label id = msg></label>
<TABLE BGCOLOR=#ffffff border=0 cellPadding=0 cellSpacing=0 width=760 align="center">
<TR>
<TD><IMG ALT="Company Name" BORDER=0 align="absmiddl e" SRC='/LWC_00173/images/2_avalon_banner .JPG'></TD>
</TR>
</TABLE>
<TABLE border=0 CELLPADDING=0 CELLSPACING=0 WIDTH=760 align="center">
<TR>
<TD>
<CENTER>
<TABLE border=0 CELLPADDING=0 CELLSPACING=0 WIDTH=660>
<TR>
<TD ALIGN=LEFT><FON T CLASS=headline> </FONT></TD>
<TD rowSpan=2 valign=top>
<BR><BR> < IMG ALT="Image" border=0 src='/LWC_00173/images/spacer.gif'>
</TD>
</TR>
<TR>
<TD HEIGHT=280 VALIGN=top><br>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD><FONT CLASS=body-font><DIV style="BACKGROU ND-COLOR: transparent"><F ONT face="Arial, Helvetica, sans-serif" size=2><P><FONT face="Arial, Helvetica, sans-serif" size=2>Welcome, </FONT></P><P><FONT face="Arial, Helvetica, sans-serif" size=2><BR>Plea se enter your password!</FONT></P><P><FONT size=2></FONT> </P><P><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>Thank you,</FONT></FONT></P><P><FONT face="Arial, Helvetica, sans-serif"><FONT size=2>Avalon Carpet Management</FONT></FONT<CENTER> <CENTER></CENTER><CENTER> </FONT></DIV></CENTER></FONT></font></TD>
</TR>
<TR>
<TD> </TD>
</TR>
</TABLE>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD VALIGN=top width="140">
<form name="invitForm " method="post" action="frontLo gin.jsp" ><input type="hidden" name="loginType " value="prospect ">
<BR>
<FONT CLASS=body-bold>Password</FONT><BR>
<FONT CLASS=body-font>
<INPUT name=invitPassw ord type=password value="">
</FONT><BR>
<CENTER>
<INPUT type=button value="Enter" onclick='javasc ript: document.invitF orm.submit();re turn true;' >
</CENTER></form>
</TD>
<TD VALIGN=top width="20">&nbs p;</TD>
</TR>
<!--<TR>
<TD COLSPAN=3>  ;</TD>
</TR>
<TR>
<TD CLASS=error-msg ALIGN=center COLSPAN=3>
<br>
<label id = msg></label><br>
</TD>
</TR>-->
</TABLE>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD><FONT CLASS=body-font></font></TD>
</TR>
<TR>
<TD> </TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</center>
</TD>
</TR>
</TABLE>
<TABLE border=0 CELLPADDING=0 CELLSPACING=0 WIDTH=760 align="center">
<TR>
<TD ALIGN=center valign="top" ><FONT CLASS=copyright ></FONT></TD>
</TR>
<TR><TD>  ;</TD></TR>
<TR>
<TD ALIGN="center"> <FONT CLASS=copyright ><A style="color:#6 66666;" HREF="http://www.mindfireinc .com" target="new" >Powered by MindFire
</A></FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
Any ideas on how to get the page to reload while saving the password? Thanks!
2 1457
I was thinking i could do a redirect somewhere in there, but how would I tie that in to the onclick for the enter button? would it be something like action=document .location="http ://blahblah.blahbl ah.com";? Anyone?
AricC 1,892
Recognized Expert Top Contributor
Why don't you redirect the user to the same page on the submit? This may steer you in the right direction.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Aspersion |
last post by:
I'm building an ASP page that has a lot of text and graphics.
There is a calculation facility on the page. The user enters several
numbers in a form and presses a button to see the calculated answer.
The problem is this: when the user presses the Calculate button, the
whole page is reloaded and, on a large page, this is very noticeable.
Is there any way that I can get the calculation done and the result
displayed without reloading...
|
by: Andy |
last post by:
Can someone please help me with this problem? I don't know if this is
possible in Java, so if it's not please point me in the right direction
or to the right newsgroup! (I'm a newby to Java scripting).
On a web page I have a webcam type image that updates every minute. I
wish to conditionally replace this image with an apology image in the
event that my upload fails for more than an hour. I guess what I want is
some script that will...
|
by: Snolly |
last post by:
Hi all,
Here is my issue. I have a web page (lets call it page1) with an
iframe in it that then opens a pop-up window (page2). The pop-up
window is used to edit some data that was loaded into page1 so I want
to use onunload to reload page1 to keep the data synchronized.
At first I was using just
window.opener.parent.location = window.opener.parent.location;
|
by: David Hayes |
last post by:
I tried finding an answer on http://www.quirksmode.org/ without success.
I am attempting a complicated Frames structure. I have made it work in IE,
but not Netscape.
I begin with three frames, where the two lower ones are within a Frameset
within the master Frameset:
1111111111111111111
|
by: Mad Scientist Jr |
last post by:
How do you get a ASP.NET page to return nothing, so the page posting
form data to it doesn't reload?
I have tried all combinations of the following:
Response.SuppressContent = True
Response.BufferOutput = True
Response.Cache.SetNoStore()
| |
by: Richard |
last post by:
Hey there,
I have a textbox and a listbox. When a user types a number in the textbox, I
want to get
all the records from a MS Access DB but without reloading the page. I now
have something manual
and a user first must press a button to get the listbox filled with records
but I want to have it done
automaticly without pressing a sumbit button. I know its prolly done with
javascript but thats one thing
|
by: Alex Gurevich |
last post by:
Hi,
I am having very strange problem,
I have Dropdownlist (DDL) with callback function for SelectedIndexChanged
event on asp.net page, which is populated in codebehind Page_OnLoad page.
After postback of the page, througth on click event of a button on the page,
and returning of the page to client side, usually selection of an item in
the DDL trigers reloading of the page but not as a postback.
Afterwads if you select another item in...
|
by: Jorge Luzarraga Castro |
last post by:
Hey,
hope you can help with this. I have an aspx page which contains several User
Control. At the beggining there´s only one visible User Control but after
working with the page additional UC begin showing up which means the page
gets longer so the scroll bar is needed to reach the ones at the bottom. The
problem I have is that when I´m working with the user control at the bottom
of the page and this page needs to be reloaded the...
|
by: henryrhenryr |
last post by:
Appologies for unclear title. I don't really understand the problem I'm facing.
My system: PHP 5.2.1, Win2K, Apache 2, MySQL 5 (local - problem is same on my live site running php 4.3.9, Linux, Apache 2). Various browsers.
No errors are reported (set to ALL and STRICT) with my problem.
To describe the problem a little more:
The symptoms - very slow page load. I can see the page reloading simply by observing the 'progress' bar in...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |