Question

Form not responding to "Enter" key

Asked by: LZ1

Hey Experts!!

I have a Java script that I did not write. It has 2 radio buttons that will redirect the user to a different page depending on which one is checked. The problem is that they have to manually hit the submit button on the page, rather than just hitting enter.

How can I make the script respond to the enter key?

<p align="left"><a href="../search2.asp"><img src="../Images/buttons/search.jpg" width="157" height="65" border="0" align="top" /></a> </p>
  <p align="left"> <form action="" method="get" name = "myForm" id="myForm" >
    <input name="search" type="text" class="body_search_box" id="search" size="20" maxlength="25" />
  </p>
  <p align="left">
    <input type="radio" name="rad1" value="serial_code" checked="checked" />
    <span class="search_option">Serial
      <input type="radio" name="rad1" value="client" />
      Client</span></p>
  <p align="left">
    <input name="Submit"  type="submit" class="button_big" onclick = "setAction1()" value="Search" />
  </p>
</form>    <script type = "text/javascript">
 
function setAction1() {
 
var actionVal;
if (document.myForm.rad1[0].checked) {
actionVal = "results_serial2.asp?search=";
}
else if (document.myForm.rad1[1].checked) {
actionVal = "results_client2.asp?search=";
}
document.myForm.action = actionVal; 
 
}
        </script>

                                  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:

Select allOpen in new window

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-09-08 at 13:50:27ID23713503
Tags

Javascript

Topic

JavaScript

Participating Experts
2
Points
500
Comments
16

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Radios in a form
    Hi, I have radio buttons and when one of the buttons is clicked, I want it to lead to a webpage. Is this possible? Can you show me the basic code to do this? So far I have: print"<FORM METHOD=\"POST\" ACTION=\"mailto:my_email_adress\">"; pr...
  2. radio and submit
    OK, two radio buttons, none selected. One submit button. When user selects a radio, then clicks submit, they will be directed to a particular url. If no radio is selected, then they will go to a default URL. Anyone know how to do this? Cannot use cgi. Thanks
  3. redirect on submit
    i have simple html email form. on submit, i want to redirect to a new page. whats the code. actually. i will give 120 extra points, if someone just fixes my existing code: ________________________________________ <form name="form" method="post" acti...
  4. Form () Radio button submit
    Hello, Does any one know how I can Implement a radio selection only form. Here is my code. I am not sure what the form action is going to be based on the radio button selection.. I kinda think it has to have some java script or php logic { If - than } . I want it to direct th...
  5. radio buttons
    I have a collection of radio buttons. I can select only one at the time. The problem comes whenever I postback on submit , I woull like to keep the selected radio on. I am ASP for server side with java script on client side. I use Request.Form(“”) to get the control values bu...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: garreHPosted on 2008-09-08 at 13:58:26ID: 22421560

Hi LZ1

The form has to have focus so when you hit enter it submits the form i.e. you press enter while your typing cursor is in the search box. When I tested it in firefox and ie, it worked for me as expected. Did you want it to redirect when you click on a radio button?

 

by: hieloPosted on 2008-09-08 at 22:04:09ID: 22424395

try:

<script type = "text/javascript">
 
function handleEnter(evt) 
{
    evt = (evt) ? evt : event;
    var form = (evt.target) ? evt.target : evt.srcElement;
    var charCode = (evt.charCode) ? evt.charCode :
        ((evt.which) ? evt.which : evt.keyCode);
    if (charCode == 13) {
    
		   setAction1(form)
            form.submit();
            return false;
    }
    return true;
}
 
function setAction1(f) {
	var actionVal;
	if (f.rad1[0].checked) 
	{
		actionVal = "results_serial2.asp?search=";
	}
	else if (f.rad1[1].checked) 
	{
		actionVal = "results_client2.asp?search=";
	}
	f.action = actionVal;  
}
        </script>
	   
<p align="left"><a href="../search2.asp"><img src="../Images/buttons/search.jpg" width="157" height="65" border="0" align="top" /></a> </p>
  <p align="left"> 
  
  <form action="" method="get" name = "myForm" id="myForm" onkeypress="handleEnter(event)">
    <input name="search" type="text" class="body_search_box" id="search" size="20" maxlength="25" />
  </p>
  <p align="left">
    <input type="radio" name="rad1" value="serial_code" checked="checked" />
    <span class="search_option">Serial
      <input type="radio" name="rad1" value="client" />
      Client</span></p>
  <p align="left">
    <input name="Submit"  type="submit" class="button_big" onclick = "setAction1()" value="Search" />
  </p>
</form>    

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:

Select allOpen in new window

 

by: LZ1Posted on 2008-09-09 at 06:24:30ID: 22427059

GarreH: I wanted it to redirect once either the enter button is pressed or the submit button is pressed.

Hielo: Unfortunately the script you provided did not work at all.  It basically refreshed the page and appended the search terms to the current url.

 

by: garreHPosted on 2008-09-09 at 07:16:14ID: 22427581

Hi LZ1, what should be the expected to happen when you have entered the search terms and press submit or enter? To bring up a new page with the search results? If so, this sounds like an issue with results_serial2.asp and results_client2.asp because the values are being parsed correctly with your code above when you press submit/enter.

 

by: LZ1Posted on 2008-09-09 at 07:29:46ID: 22427732

I would expect the form to take me to the appropriate page according to the radio button.  I dont' believe it is the results page, because upon hitting enter, the current page just refreshes, with the variables appended.  Ideally hitting the enter button give the exact same result as hitting the submit button

 

by: garreHPosted on 2008-09-09 at 08:13:21ID: 22428253

That didnt really answer my question. What is shown when you press the submit button on the page? The results? Are there two forms on your html page clashing? What browser are you using? Could you post the full code for the html page which has the form on? I'm a little lost here.

 

by: LZ1Posted on 2008-09-09 at 08:20:07ID: 22428344

The search page I am using is a small include file, which is included on all of my pages.  They could be clashing, but I am not sure how.  

When pressing the submit button, the page simply refreshes.  It should instead take me to the page specified in the script according to the radio button.  There are two forms inside of the include page, one above the other.  The bottom one is fine, it's the top one which I need to have corrected.  

Sorry if this is confusing.  Thanks for your help

<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
  Session.Contents.Remove("MM_Username")
  Session.Contents.Remove("MM_UserAuthorization")
  MM_logoutRedirectPage = "../login2.asp"
  ' redirect with URL parameters (remove the "MM_Logoutnow" query param).
  if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
  If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
    MM_newQS = "?"
    For Each Item In Request.QueryString
      If (Item <> "MM_Logoutnow") Then
        If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
        MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
      End If
    Next
    if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
  End If
  Response.Redirect(MM_logoutRedirectPage)
End If
%><style type="text/css">
<!--
#apDiv1 {
	position:absolute;
	width:auto;
	height:auto;
	z-index:2;
	left: 171px;
	top: 150px;
}
#search_main {
	position:absolute;
	width:auto;
	height:auto;
	z-index:2;
	left: 0px;
	top: 150px;
	border-top-width: thin;
	border-right-width: thin;
	border-bottom-width: thin;
	border-left-width: thin;
	border-top-style: none;
	border-right-style: groove;
	border-bottom-style: groove;
	border-left-style: none;
	border-top-color: #990000;
	border-right-color: #990000;
	border-bottom-color: #990000;
	border-left-color: #990000;
}
-->
</style>
<link href="../CSS/main.css" rel="stylesheet" type="text/css" />
 
<div class="div_search_right" id="search_main">
 
  <p align="left"><a href="../search2.asp"><img src="../Images/buttons/search.jpg" width="157" height="65" border="0" align="top" /></a> </p>
  <p align="left"> <form action="" method="get" name = "myForm" id="myForm" >
    <input name="search" type="text" class="body_search_box" id="search" size="20" maxlength="25" />
  </p>
  <p align="left">
    <input type="radio" name="rad1" value="serial_code" checked="checked" />
    <span class="search_option">Serial
      <input type="radio" name="rad1" value="client" />
      Client</span></p>
  <p align="left">
    <input name="Submit"  type="submit" class="button_big" onclick = "setAction1()" value="Search" />
  </p>
</form>    <script type = "text/javascript">
 
function setAction1() {
 
var actionVal;
if (document.myForm.rad1[0].checked) {
actionVal = "results_serial2.asp?search=";
}
else if (document.myForm.rad1[1].checked) {
actionVal = "results_client2.asp?search=";
}
document.myForm.action = actionVal; 
 
}
        </script>
        
 
<form action="results_expirations.asp?" method="get" name = "exp_form" id="exp_form" >
  <p align="left">
    <label><span class="body_text"> Expirations 
      Between<br />
      </span></label>
    <span class="style6">
      <label>
      <input name="date1" type="text" class="body_search_box" id="date1" size="20" a="a" href="javascript:NewCal('date1','ddmmmyyyy',true,24)" />
        <a href="javascript:NewCal('date1','MMddyyyy')"><img src="../Images/icons/calendar_small.jpg" alt="cal" width="20" height="19" border="0" /></a><br />
    </label>
    </span>
    <label><span class="body_text">And<br />
      </span> </label>
    <span class="style6">
      <label> </label>
    </span>
    <label>
    <input name="date2" type="text" class="body_search_box" id="date2" size="20" />
      <a href="javascript:NewCal('date2','MMddyyyy')"><img src="../Images/icons/calendar_small.jpg" alt="cal" width="20" height="19" border="0" /></a></label>
  </p>
  <p align="left"> <span class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Adult_Pads" checked="checked" />
    Adult Pads</span></p>
  <p align="left" class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Battery" />
    Battery </p>
  <p align="left" class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Ped_Pads" />
    Ped Pads</p>
  <p align="left">
    <input name="Submit2"  type="submit" class="button_big" onclick = "setAction()" value="Search" />
  </p>
</form>
</div>
<div id="apDiv1">
  <div align="center"><span class="login_head">Logged in as <%=(rsUser.Fields.Item("user_name").Value)%></span> <a href="<%= MM_Logout %>"><img src="/Images/icons/mini_logout.jpg" alt="micro_logout" width="44" height="16" border="0" align="middle" /></a></div>
</div>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:

Select allOpen in new window

 

by: hieloPosted on 2008-09-09 at 09:38:38ID: 22429297

>>It basically refreshed the page and appended the search terms to the current url.
On what YOU posted originally, your function setAction1() is setting the actin of the form to the same url for BOTH, the if and the else cases. I don't know why YOU are doing that, but that is what YOU posted. Additionally, it is "appending" to the url because YOU put method='get'. If you do not want that then change it to method='post'.

 

by: LZ1Posted on 2008-09-11 at 08:08:29ID: 22450750

I do wish for it to append the URL, but I want it to append to the next page.  The script is simply redirecting according to the checked radio button.  

In it's simplest form, I want the user to be able to hit the enter button and take them to the proper page.   So the script needs to handle the Enter button.  Right?  I am not very good with Java.

 

by: LZ1Posted on 2008-09-11 at 08:09:50ID: 22450764


I do wish for it to append the URL, but I want it to append to the next page.  The script is simply redirecting according to the checked radio button.  
 
In it's simplest form, I want the user to be able to hit the enter button and take them to the proper page.   So the script needs to handle the Enter button.  Right?  I am not very good with Java.

 

by: hieloPosted on 2008-09-11 at 21:50:20ID: 22457223

you have two separate forms. Based on the setAction1 function you supplied, it seems you are trying to submit the first function upon "Enter":

<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
  Session.Contents.Remove("MM_Username")
  Session.Contents.Remove("MM_UserAuthorization")
  MM_logoutRedirectPage = "../login2.asp"
  ' redirect with URL parameters (remove the "MM_Logoutnow" query param).
  if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
  If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
    MM_newQS = "?"
    For Each Item In Request.QueryString
      If (Item <> "MM_Logoutnow") Then
        If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
        MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
      End If
    Next
    if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
  End If
  Response.Redirect(MM_logoutRedirectPage)
End If
%><style type="text/css">
 
#apDiv1 {
        position:absolute;
        width:auto;
        height:auto;
        z-index:2;
        left: 171px;
        top: 150px;
}
#search_main {
        position:absolute;
        width:auto;
        height:auto;
        z-index:2;
        left: 0px;
        top: 150px;
        border-top-width: thin;
        border-right-width: thin;
        border-bottom-width: thin;
        border-left-width: thin;
        border-top-style: none;
        border-right-style: groove;
        border-bottom-style: groove;
        border-left-style: none;
        border-top-color: #990000;
        border-right-color: #990000;
        border-bottom-color: #990000;
        border-left-color: #990000;
}
 
</style>
<link href="../CSS/main.css" rel="stylesheet" type="text/css" />
 
<div class="div_search_right" id="search_main">
 
  <p align="left"><a href="../search2.asp"><img src="../Images/buttons/search.jpg" width="157" height="65" border="0" align="top" /></a> </p>
  <p align="left"> 
  
<script type = "text/javascript">
 
function handleEnter(evt) 
{
    evt = (evt) ? evt : event;
    var form = (evt.target) ? evt.target : evt.srcElement;
    var charCode = (evt.charCode) ? evt.charCode :
        ((evt.which) ? evt.which : evt.keyCode);
    if (charCode == 13) {
    
                   setAction1(form)
            form.submit();
            return false;
    }
    return true;
}
 
 
function setAction1() {
 	var actionVal="";
	if (document.myForm.rad1[0].checked) {
		actionVal = "results_serial2.asp";
	}
	else if (document.myForm.rad1[1].checked) {
		actionVal = "results_client2.asp";
	}
	document.myForm.action = actionVal;
}
        </script>
 
  <form action="" method="get" name="myForm" id="myForm"   onkeypress="handleEnter(event)">
    <input name="search" type="text" class="body_search_box" id="search" size="20" maxlength="25" />
  </p>
  <p align="left">
    <input type="radio" name="rad1" value="serial_code" checked="checked" />
    <span class="search_option">Serial
      <input type="radio" name="rad1" value="client" />
      Client</span></p>
  <p align="left">
    <input name="Submit"  type="submit" class="button_big" onclick = "setAction1()" value="Search" />
  </p>
</form>    
        
 
<form action="results_expirations.asp" method="get" name="exp_form" id="exp_form">
  <p align="left">
    <label><span class="body_text"> Expirations 
      Between<br />
      </span></label>
    <span class="style6">
      <label>
      <input name="date1" type="text" class="body_search_box" id="date1" size="20" a="a" href="javascript:NewCal('date1','ddmmmyyyy',true,24)" />
        <a href="javascript:NewCal('date1','MMddyyyy')"><img src="../Images/icons/calendar_small.jpg" alt="cal" width="20" height="19" border="0" /></a><br />
    </label>
    </span>
    <label><span class="body_text">And<br />
      </span> </label>
    <span class="style6">
      <label> </label>
    </span>
    <label>
    <input name="date2" type="text" class="body_search_box" id="date2" size="20" />
      <a href="javascript:NewCal('date2','MMddyyyy')"><img src="../Images/icons/calendar_small.jpg" alt="cal" width="20" height="19" border="0" /></a></label>
  </p>
  <p align="left"> <span class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Adult_Pads" checked="checked" />
    Adult Pads</span></p>
  <p align="left" class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Battery" />
    Battery </p>
  <p align="left" class="search_option">
    <input name="exp" type="radio" class="search_radio" value="AED_Master.Ped_Pads" />
    Ped Pads</p>
  <p align="left">
    <input name="Submit2"  type="submit" class="button_big" onclick = "setAction()" value="Search" />
  </p>
</form>
</div>
<div id="apDiv1">
  <div align="center"><span class="login_head">Logged in as <%=(rsUser.Fields.Item("user_name").Value)%></span> <a href="<%= MM_Logout %>"><img src="/Images/icons/mini_logout.jpg" alt="micro_logout" width="44" height="16" border="0" align="middle" /></a></div>
</div>

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:

Select allOpen in new window

 

by: garreHPosted on 2008-09-12 at 00:13:01ID: 22457686

What browser are you using?

 

by: LZ1Posted on 2008-09-12 at 04:40:04ID: 22458722

I and most of the users are using IE.  One is using FireFox

 

by: LZ1Posted on 2008-09-12 at 04:40:22ID: 22458726

That code did not work Hielo.  Same results as before

 

by: hieloPosted on 2008-09-12 at 07:28:44ID: 22460165

on my last post, instead of:
var form = (evt.target) ? evt.target : evt.srcElement;

try:
 var form = document.getElementById("myForm");

 

by: LZ1Posted on 2008-09-12 at 07:31:43ID: 31494462

Thanks a lot for your help hielo!!!! I appreciate it.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...