close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

problem with search submit

Thread begun 6/18/2009 4:03 am by jamie325853 | Last modified 3/19/2010 8:28 am by Ray Borduin | 5519 views | 15 replies |

jamie325853

problem with search submit

Hi wonder if anyone can advise on a small issue I have.

In internet explorer when you enter text in the keywords box to search and press the enter key on the keyboard to submit (IT WORKS CLICKING THE SUBMIT BUTTON) it does not post the values and just returns all products.

Here is the link to the site im building: index.php

if you type say rcf into the keywords box and hit the return key on the keyboard it does not perform the search, its one of those anoying little bugs that seems to be causing me problems.

Kind Regards
Jamie Jackson

Sign in to reply to this post

Ray BorduinWebAssist

Change the trigger. Right now you are triggerring using the click of that button... instead trigger off of the form element value itself.

Oddly in IE if you have a form with only one form element it won't click the button when you press return... I think you may be able to add a hidden form element to make the button click happen as well it is an odd issue with IE.

Sign in to reply to this post
Did this help? Tips are appreciated...

brock95401644

Originally Said By: Ray Borduin
  Change the trigger. Right now you are triggerring using the click of that button... instead trigger off of the form element value itself.

Oddly in IE if you have a form with only one form element it won't click the button when you press return... I think you may be able to add a hidden form element to make the button click happen as well it is an odd issue with IE.  



Would it be possible for you to give an example of the hidden form element that you'd put into the code to make this work?

I've been trying to find a way around the same issue as raised in this thread to no avail.

Sign in to reply to this post

brock95401644

Originally Said By: brock95401644
  Would it be possible for you to give an example of the hidden form element that you'd put into the code to make this work?

I've been trying to find a way around the same issue as raised in this thread to no avail.  



No worries, I fixed it through trial and error.

Just in case someone else out there was having the same basic error and weren't sure what should be added to make the form submit with the enter key, here's what I added to the form...

<input type="text" style="visibility: hidden; position: absolute" />

This is probably common knowledge but if someone out there has only a basic understanding like I do then hopefully this will help them.

Sign in to reply to this post

digitaldesign

Oddly enough I just encountered this same issue today and was coming out to search for an answer. THANK YOU Jamie for posting and THANK YOU Ray for the fix. It worked splendidly adding a non-used HIDDEN text field in the form. Enter key bug is exterminated!

Cheers,
Monica

Sign in to reply to this post

digitaldesign

Sorry for hijacking... it's still related to the same original topic.

It worked for 10 minutes... now they all come back with a full recordset (108 records). Whether clicking or entering. Hmm.... How would one trigger off of a form element value?

Right now the trigger is:
if ((isset($_POST["WADbSearch1"])) && ($_POST["WADbSearch1"] != "")) {

Which is the button name. Do you mean to change it to the name of the form:

if (isset($_POST["SiteSearch"])) {

Thanks!
Monica


*** EDIT ***
I found if I wrapped everything in this:
if (isset($_POST["searchtype"]) && ($_POST["searchtype"] == "data")) {

Using my hidden field for a validation it worked great. I also wrapped everything from the INCLUDE helper file as well as the recordsets in that boolean so that if they just happen to land on the results page without entering a keyword it just gives them a prompt to type a search keyword into the box.

***

Sign in to reply to this post

Ray BorduinWebAssist

No I mean change it to the name of the form input field.

Sign in to reply to this post
Did this help? Tips are appreciated...

mcriecken380554

Search Field Problem

I'm having this same problem, only no matter if i hit the enter key or press the submit button, it loads my results page with all of my inventory. I used the "DataAssist Search Wizard" to put a few search fields on my front page. Under the bindings and database panels it shows I have connections in both. I'm fairly new to PHP and MySQL, so I'm guessing it's something simple I'm missing. Thanks for any help.

-Matt

Sign in to reply to this post

sales356151

the only way i managed to resolve it was start again and it worked

Sign in to reply to this post

mcriecken380554

Fixed it

I figured out what I was doing wrong. On my results page under "server behaviors" I had about 3-4 different search behaviors, I believe they were conflicting with each other. Also, I made a very beginner mistake and forgot to upload my results page after I added the search function to my front page. When you use the DataAssist Search Wizard make sure you re-upload your results page too!

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...