CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 auto submit search form onchange

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 06/18/2010, 1:36 PM

Hi all..

On Listbox of search form I have a Client On Change event code.

Expression: "document.myform.submit()"
Form: NewRecord1

User selects from a listbox and it autosubmits the form..works great...
Only issue is the Search button. I want to get rid of it.. but if I remove the search button, the code stops working.

Any ideas?

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
magus

Posts: 98
Posted: 06/18/2010, 9:29 PM

Hi ckroon,

May be you can set the button's display property to none.

style="display: none;"

Maybe you could also try disabling it.

disabled="disabled"

Regards,
Don A
View profile  Send private message
ckroon

Posts: 869
Posted: 06/18/2010, 9:59 PM

Thanks Magus.

I did that already.. it just seemed cheesy :)

I was hoping to get rid of it entirely.

I guess this will work unless someone knows why the Search button has to be there....
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
magus

Posts: 98
Posted: 06/18/2010, 11:34 PM

Hi ckroon,

Perhaps you could try deleting the button from the html template after it has been published to your server?

Regards,
Don
View profile  Send private message
Waspman

Posts: 948
Posted: 06/19/2010, 7:46 AM

try it another way:

window.location.href = "pagename.php?paramID=" + this.value


I do this all the time and you take off the button...T ;-)
_________________
http://www.waspmedia.co.uk
View profile  Send private message

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.