CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Default Button 4 Search Form not working

Print topic Send  topic

Author Message
kevind

Posts: 251
Posted: 12/08/2004, 1:59 PM

I have a search form where the 'search' button is defined as the default button and a simple grid to return results. I set focus to the keyword field of the form, type in some criteria and hit ENTER on the keyboard - the page refreshes but the results do not reflect the criteria supplied.

If I use the mouse to click the Search Button instead I get a different response with the correct results being displayed. Same is true if I tab over to the Search button and click it with the spacebar.

The form and search button do not have a return page defined as the current page is assumed. If Preserve Parameters property is set to None or Get only it doesn't work - if it is Get & Post then pressing the ENTER key in the Search Form works.

Anyone see this before ? Know the cause ?

Thanks,
Kevin



_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message
DonB
Posted: 12/11/2004, 1:39 PM

If by "default button" you mean that you set this property on the Data
properties panel, then you should know that this property does nothing. At
least for the ASP and PHP environments. I don't know why it's there or if
it has some planned purpose or current purpose in other environments. but
as for the two I use, it is completely non functional.

The HTML rule is that the first button in the html (if you read the html
from top to bottom, the first one you come to) is the "default" button.

--
DonB

http://www.gotodon.com/ccbth
kevind

Posts: 251
Posted: 12/16/2004, 11:36 AM

let's forget the 'default' part - if I press ENTER after typing in the criteria the search does not return anything despite refreshing the page

if I enter the criteria and click SEARCH with the mouse - the search returns results.
_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message
John La
Posted: 12/19/2004, 4:36 PM

I have the EXACT same problem!! It's a problem for ONLY Internet Explorer.

I have a simple form: 1 textbox and 1 submit button
After typing in a query, if you hit Enter, nothing happens but a page refresh. The IE user MUST click the button to have the query submitted. I've tried everything including looking at the code on Google.com to see how they did it. I'm at wit's end. I'd REALLY appreciate any help on this. My site with the problem is at www.motherofalldeals.com. Thanks for any help!
Oper


Posts: 1195
Posted: 12/19/2004, 5:24 PM

THe only thing i see odd is that you search form action is the ASP only, dont show the ccsform parameters.

That Search form was created using the search form on th eToolBox/ Bulder?

all my search work ok on IE, i have nver had that problem.

and is some point you deleted or you URLparamter so make difficult to trace/test for me.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
peterr


Posts: 5971
Posted: 12/19/2004, 5:47 PM

Kevin, John,

Is the submit button in focus when you are entering date into those search fields? In other words, do you see the button change a little when you move the cursor into a search field vs. outside of the form?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Oper


Posts: 1195
Posted: 12/20/2004, 5:57 AM

Yes Peter, the Button is selected. (at least on his website, but the CCSFORM parameter is never called.

maybe delete that search form and create again.
(its a simple task but Keep Backup)


_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
john
Posted: 12/20/2004, 6:21 AM

Quote Oper:
Yes Peter, the Button is selected. (at least on his website, but the CCSFORM parameter is never called.

maybe delete that search form and create again.
(its a simple task but Keep Backup)



I'm quite befuddled at what you mean by CCSForm. I'm still a newb at this. But I created the search form just on notepad, no program.

Here's what I have for the form. It's really small so I just dont understand what could be wrong with it. It seems to be like any other search form on the Internet that works. No comprende.
  
<form name=mysearch method=post action=main.php>  
	  <input type=Text name=term size=40 value=""> <input type=Submit name=search value=Search Deals>  
</form>   
  <script type=text/javascript><!-- document.mysearch.term.focus(); //--> </script>  

I appreciate any kind of help! Thanks!
Oper


Posts: 1195
Posted: 12/20/2004, 4:31 PM

why not just use the Search created by CCS will be just 30sec to created

Action will be a variable and will be changed as needit.

_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Sunny
Posted: 01/26/2005, 6:21 AM

;-)

The problem is not that internet explorer has a bug, the problem is that your code has a bug. When you hit enter while in a text field ie will submit the form, it does not however add the submit button to the post headers unless you click on it. In your php code do not check if the submit button exists, check if the post has been made.

ex. if (isset($_POST))

Emmet
Posted: 01/30/2005, 8:59 AM

I have the same problem in a (100% W3C conform) xhtml page. I guess this is not a bug but a feature of IE. In complex pages you can keep control what is the default behaviour by sending a hidden parameter (the default simply does not need to be the first button!).
MiK
Posted: 02/03/2005, 9:23 AM

To Sunny:

I have to disapoint you. This problem must be a BUG of IE and not a feature. :-/ But this problem is observed especially using HTTPS.

Playing with the structure of the form, I got this result:

1. Form built of some hidden fields, some closed text fields and a submit button => nothing happened by pressing RETURN

2. Form built of some hidden fields, some closed text fields, one open text field and a submit button => form was submitted without data from button by pressing RETURN

3. Form built of some hidden fields, some closed text fields, more than one open text fields and a submit button => form was submitted with data from button by pressing RETURN

This behavior of submitting a form by pressing RETURN doesnt't appear to be very favoured.

greetings
MiK
Loz
Posted: 02/15/2005, 5:10 PM

Thanks for your help guys and your research MiK.

It may not be relevant for you or codecharge studio, i don't use it, however...

I define image buttons e.g. <INPUT type="image" name="butzlogout" border="0" id="inactiveo" src="/images/menulogoutEN.gif" />

I test (on the server side) for no button returned in the buffer at all (they all start 'butz') and also the x y values. They are returned as 0 with the first button name, if enter is pressed.

i.e. i test for this... &butzlogout.x=0&butzlogout.y=0

Loz
Rostislav Stříbrný
Posted: 03/08/2005, 10:25 AM

I had the same problem and found nice workaround at http://www.sitepoint.com/forums/showthread.php?t=155363&goto=nextnewest :

Anyway...any form control with a name and a value will submit its data; you might try adding a hidden field to store the submit name used:

<form..........>
<input type="hidden" name="server_action" value="default">
..........
..........
<input type="submit" value="Send E-mail" onclick="server_action.value='sendEmail'">
<input type="submit" value="Save Draft" onclick="server_action.value='saveDraft'">
</form>


Simple and nice. :c)
RS

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.