logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: In need of suggestions. . .: msg#00042

Subject: RE: In need of suggestions. . .
Hi Jason -- 

> I need a way to pass parameters between the scripts.  The 
> logical choice 
> is through the user's session, but that makes more than a few places 
> that I would have to check to clear the message field if it 
> is not needed.
> 
> Is there something simple I'm missing?


(That is certainly the same question I would ask -- stress on the
"simple" part.  I am a fan of simplicity.)

Unfortunately, I don't have a more simple suggestion for you.  The
ability to send messages between requests, screens, or cgi-apps is a
tough one.  In the last couple years the best system I've used has been
the architecture devised by Sam Tregar, built on Apache::Session.  It
works in essentially the exact manner you describe -- messages are
pushed into the user's session, and are then pulled out on the next
request and displayed on the top of the page.

The only improvement I can suggest is that you centralize the display of
messages in a Perl module.  For instance, you might create a CGI-App
super class and override load_tmpl() to put pending messages at the top
of the page.

TTYL,

-Jesse-


--

  Jesse Erlbaum
  The Erlbaum Group
  jesse@xxxxxxxxxxx
  Phone: 212-684-6161
  Fax: 212-684-6226





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>