473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How do I stop AutoComplete from going to a new page when pressing enter?

Hello,

I have a two part question. My first question is what I asked in the subject of the question: How can I stop AutoComplete from going to a new page when selecting the value from my database. The reason I need to stop it from going to the next page is because I want the user to select a player value and a statistics value from a drop down menu.

The second part of my question includes how I can pass the id variable from the drop down and include it into the url.

At this point in my code, I can successfully pass the player ID variable into the URL, but I dont know how to pass the statistics variable ID from the drop down into the URL.

Ultimately, I would like the user to click a 'submit' or 'go' button to get to the next page after selecting the player and statistic they want to view.

The URL string should look like(for example): FrontEndBeta.php?p=1&s=1

Here is the code that I have so far for your reference. Any help highly grateful for: http://pastie.org/1157229
Sep 14 '10 #1

✓ answered by Canabeez

I believe it's better to keep the question in the same post, here.

2 1202
Canabeez
126 100+
I believe it's better to keep the question in the same post, here.
Sep 14 '10 #2
Plater
7,872 Expert 4TB
I believe you can insert a "return false;" into the onsubmit event of your various textboxes (input type="text")
Sep 14 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jerry | last post by:
Hello I have some textboxes (input type=Text) in a Form. In some Forms if I Press Enter while I am in the Textbox It causes a Submit. The input type is text not submit. It's obsure that the...
1
by: George Homorozeanu | last post by:
Hi, I have an ASP.Net Page with some control on it (buttons, textboxes, calender, etc). When I'm changing the text in the textbox I want to run some code and change the date of the calendar. The...
4
by: nkoier | last post by:
Hi, I've been going crazy trying to figure out what's wrong with our Asp.Net 2.0 intranet site. At the very top of our main page I provide a TextBox and a Button for submitting Google searches....
2
by: cvijaykrishna | last post by:
i have a windows based application which contains textboxes when i press enter in one textbox then focus should go to next textbox i dont want to hard code like ex: textbox3.focus but i want to...
1
by: mazdotnet | last post by:
Hi, We have a internal site using Master Pages that has a header (web user control) on top of every page with a search feature. This search is basically a textbox and a search button beside it...
3
by: pveena | last post by:
Hi, I am new to php. I have two pages.one is login page other is details page. When user enter detaisl page directly in URL i want to redirect to login page then login success it should go to...
4
erwinnnn
by: erwinnnn | last post by:
I'm a total noob on c#, i just started 2 weeks ago I'm making a calculator Its very simple.. When i press the enter key, button1 must be clicked It works with all the other keys, but with the...
1
by: RyanT | last post by:
Access 2000 Windows XP I have a small form with two text boxes: - User ID - Password The form also has two command buttons: - Login - Cancel
2
Soniad
by: Soniad | last post by:
Hello, I am having ASP page, in this there in one textbox to enter emailid ,I have done javascript validation for this i.e. if email id is not valid then alert message is shown and page will not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.