Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Refreshing frame on submit

by Unforgiven (Hermit)
on Jan 19, 2010 at 13:56 UTC ( [id://818184]=note: print w/replies, xml ) Need Help??


in reply to Refreshing frame on submit

I think I'd have two scripts: save_form.cgi and load_message.cgi. You submit your form and it goes to save_form.cgi, which saves the data. save_form.cgi returns a simple page that just says "message saved" or whatever, and has a bit of javascript that changes the right_frame's location to something like "load_message.cgi?id=1234", where 1234 is the recently submitted message's identifier. Then just have load_message.cgi read the thing they just posted, and display it.

I should warn you though, I'm a little sleep deprived from being sick lately, so there's probably easier/better ways to do it. That was just my initial reaction to it

Replies are listed 'Best First'.
Re^2: Refreshing frame on submit
by jithint (Novice) on Jan 20, 2010 at 04:42 UTC
    Thanks for the reply. Isn't it possible to do it using only CGI/Perl. Right now I'm using a cgi script to save the feedback to a file and at the end of the save operation I redirect to left_frame, so that after submitting the feedback form is displayed again.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://818184]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found