|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
Join Date: Jul 1999
Location: Mass
Posts: 756
|
Hi there.
I'm working on a form for an internal application at my company. The basic code for the form is below. The problem goes like this... When you load the page, type something in the text box, and hit Enter, the page simply refeshes without returning ANY results. If you type in the text box and CLICK the Submit button, the form works perfectly. Why do you suppose no results are returned upon the first method? Is there some piece code I need to insert into my Index.asp page to counter this? Thanks for any info! ~p
|
|
|
|
|
|
#2 |
|
Member (7 bit)
|
No, it doesnt have anything to do with your index.asp page, you can do it with javascript.. here, this page outta do it:
http://javascript.about.com/library/...mitonenter.htm enjoy. |
|
|
|
|
|
#3 |
|
Member (10 bit)
Join Date: Jul 1999
Location: Mass
Posts: 756
|
cool! i will try this out tomorrow. thanks Goog!!
|
|
|
|
|
|
#4 |
|
Member (7 bit)
|
np, yer welcome.
|
|
|
|
|
|
#5 |
|
Member (10 bit)
Join Date: Jul 1999
Location: Mass
Posts: 756
|
hmmm. still no dice.. works the same way. it appears that the form is being submitted, but the page simply refreshes and the query is not run. i am going to search for some more scripts...
|
|
|
|
|
|
#6 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
That's weird. Usually the only time I have seen it do that is if you put your reset button before your submit button. So that pressing Enter, clears instead of submitting.
__________________
Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row |
|
|
|
|
|
#7 |
|
Member (10 bit)
Join Date: Jul 1999
Location: Mass
Posts: 756
|
I think I have it licked!!
The ASP had this IF statement, for the Submit button: if ucase(Request("Action")) = "SEARCH" .. i need the functions that lie within that IF to run no matter what! so if someone hits Enter from the Text Box, the Submit button is being skipped over.. and when the data gets passed, this IF statement doesn't get turned on... leaving us with no search results! i took out the IF portion, so this is mandatory.. and BAM, it works like a charm! |
|
|
|
|
|
#8 |
|
Member (7 bit)
|
cool..
hey mairving, nice signature
|
|
|
|
|
|
#9 | |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Member (7 bit)
|
Yeah, its from attrition.org (Thats where I got it anyway). I can tell u didnt copy mine because you added the single quotes around 'if your...' and thats the way it is on attrition, i removed them in mine for some reason..
heh. there were a ton of funny quotes there, did u see the ones of actual instructions on foreign products? |
|
|
|
|
|
#11 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
I really have no idea where it came from. I did a Goggle search on 'Linux Quotes' and it came up. I also like the Windows 95 or better quote which Statica has used before.
|
|
|
|
|
|
#12 |
|
Member (7 bit)
|
Oh, you should check out http://www.attrition.org/quotes/
theres a lot of funny quotes there... techie type stuff to.. but the one in particular i found to be truly hilarious was this: http://www.attrition.org/quotes/labels.html its real instructions on labels of actual prodocuts. Also, worth a look : http://www.attrition.org/quotes/bush.htm |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|