Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Refreshing frame on submit

by Unforgiven (Hermit)
on Jan 19, 2010 at 13:56 UTC ( #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
Node Status?
node history
Node Type: note [id://818184]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2020-10-22 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?