Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backing up a page 1

Status
Not open for further replies.

abovebrd

IS-IT--Management
May 9, 2000
690
US
Is there a mechinism in perl that will will allow me refesh and restart a script.

I have a script that parses output to an html page. From that page I currently have to click the "Back" button on my browser to get back to the entry page. Is there a way I can create a button on my html page that will serve this function ?



-Danny






 
yep... are you wanting a client-side solution, or perl? cause you could easily do this in javascript. adam@aauser.com
 
I was trying to limit it to perl code only.


-Danny






 
why dont you just make a link on your page to go back to the form? it doesn't make sense to make a trip to the server to redirect back to the page you came from.

or use javascript to go back. adam@aauser.com
 
I can barely code in perl. Javescript I am lost :(

I will follow up in the linking idea. It seems like the best approach right now given my resources.

Thanks



-Danny






 
You don't need to program in javascript to do it, just include a link on the page like this:
Code:
<a href=&quot;javascript:history.go(-1)&quot;>go back</a>
That will do it.
 
This is I was trying to do.

goBoating helped me out with this.

print &quot;<A HREF=\&quot;payroll.pl\&quot;> Refresh Form</A>&quot;;

Thanks for the helps everyone.

(Hopefully some day I too can be a Perl guru)

-Danny






 
I didn't say what I used wasn't javascript, just that you didn't have to PROGRAM in javascript. That one's so simple it really doesn't count as programming (at least to me).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top