CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Delete the search button

Print topic Send  topic

Author Message
Tor
Posted: 11/06/2003, 5:04 PM

Hi
I have a search form with a listbox. Is it possible to delete the search button, and start the search automatically when a new value is selected in the listbox?

Regards
Tor
Hamilton
Posted: 11/06/2003, 7:23 PM

<SCRIPT LANGUAGE = "JavaScript">
function goPage(form)
{
selID = form.selID.value;
page = "default.asp?id=" + selID;
window.location=page
}
</SCRIPT>


'Example: <select name="selID" onChange="goPage(this.form); return true">

On your input box, add onChange="goPage(this.form); return true"
Change the name of the name of the select box (form.selID.value) in the javascript to the name of your input box.

Hope this helps,

Hamilton
www.dataobjx.net




   


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

MS Access to Web

Convert MS Access to Web.
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.