CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 How-To put a Clear Button on search form?

Print topic Send  topic

Author Message
DeWebDude
Posted: 01/29/2003, 2:02 PM

Hi, I can't seem to figure out how to put a clear button on a search form from WITHIN codecharge, yes I know we can put it in the template (using php w/temp), but I wanted to see if there was a way within CC.

Thanks !
Chris - CCS Newbie
Posted: 01/30/2003, 7:38 PM

Forgive me in advance if I am not helping, but I was trying to do the same thing, so I did the following

I added a button and changed the type to reset instead of submit. This cleared out any changes I had made since the last refresh of the page, but did not actually clear the pre-existing search criteria.

So then I changed the type to button and added some code as follows to the client side onclick event (vbscript)

document.ClaimStatusesSearch.s_Status.value = ""
document.ClaimStatusesSearch.s_Description.value = ""

Hope this helps you out.

Chris

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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