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

 Secondary Buttons on Grid forms

Print topic Send  topic

Author Message
Kerry Straeker
Posted: 01/01/2002, 8:10 AM

I need to have extra butons on the searcg/grid forms that allow users to either goback to the previous page or goto some-other page within the site.

For example, a user has chosen or pushed on the Url link by accident, and instead of relying on the Web browsers Back button, I would like the user to be able to press a button.

I have spent many hours over this and just can not get my head around it at all. I have added buttons to the form, but all the actions seem to go to the search button, and I can not find any ($Action) form events within the php generated script (like in the record page scripts)

I am using a PHP based system.

Please, if anyone has done this or knows how to implement it, I would be gratefull.
parsam
Posted: 01/01/2002, 7:31 PM

Add label field and write html code in lable text like:
<INPUT TYPE="button" onClick="javascript:somefunction()">
You can add somefunction() to the header of the page to do what you want.
George L.
Posted: 01/02/2002, 12:30 PM

Try this javascript in your header or footer of your page.
<FORM>
<INPUT type="button" value="Back" onClick="history.back()">

<INPUT type="button" value="Forward" onClick="history.forward()">
</FORM>

There are lots of other free javascripts like this one available at:
http://www.javascriptcity.com/scripts/

   


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.