×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Backing up a page

Backing up a page

Backing up a page

(OP)
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
 
 


RE: Backing up a page

yep... are you wanting a client-side solution, or perl? cause you could easily do this in javascript.

adam@aauser.com

RE: Backing up a page

(OP)
I was trying to limit it to perl code only.


-Danny
 
 


RE: Backing up a page

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

RE: Backing up a page

(OP)
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
 
 


RE: Backing up a page

You don't need to program in javascript to do it, just include a link on the page like this:

<a href="javascript:history.go(-1)">go back</a>

That will do it.

RE: Backing up a page

(OP)
This is I was trying to do.

goBoating helped me out with this.

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

Thanks for the helps everyone.

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

-Danny
 
 


RE: Backing up a page

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).

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close