Re: some remarks to mod_survey

Clemens Gruber <[email protected]> Fri, 03 Aug 2007 22:16:32 +0200
Newsgroups gmane.comp.apache.mod-survey.general
Organization virtUOS / Uni Osnabrueck
Message-ID <[email protected]>
Hi, I meant with "dynamic messages" the success or error message
mod_survey generates:

> Uebertragung erfolgreich
> Ihre Daten wurden erfolgreich uebertragen.

_or_ the error message in case of a syntax mistake (or whatelse?).

In the case you suggest - and in my solution <SURVEY ...
CONTINUE="http://my-last-page" REDIRECT="yes"> the end user will ever
get the same message e.g. "You've managed to commit your data!! Wheee!!"
btw. "Wheee" is great, I should adopt it. ;-) even the data could not be
stored.

Kind regards!
Clemens


Joel Palmius wrote:
> On Tue, 6 Feb 2007, Clemens Gruber wrote:
>
>> - After filling out the last page, you submit the survey. Now the
>> unlovely thing happends that you get a individual message (this is good
>> ;-) but in an entire other design. I've used this suboptimal workaround:
>> <SURVEY ... CONTINUE="http://my-last-page" REDIRECT="yes"> on the last
>> page. So I have a customizable but static page, without the success or
>> error message. Is there another way to use a template or an include
>> directive to get the last page in an adapted design with the dynamic
>> messages?
>
> Hmm.. It's possible to set a cookie using a submit-time perl snippet
> in the last page. Then you could re-direct to a script to get a
> dynamic page. But that seems cumbersome. Isn't this good enough?
>
> <SURVEY TITLE="hello">
>
>   <TEXT NAME="test" CAPTION="test" />
>
>   <SUBMIT VISIBLE="yes">
>     <html>
>     <head>
>     <title>Success!!</title>
>       <style>
>         .good { color: #009900; }
>       </style>
>     </head>
>     <body>
>     <h1 class="good">Success!!</h1>
>     You've managed to commit your data!! Wheee!!
>   </SUBMIT>
>
> </SURVEY>
>
> You can also use a submit-time perl snippet to get dynamic contents:
>
> <SURVEY TITLE="hello">
>
>   <TEXT NAME="test" CAPTION="test" />
>
>   <SUBMIT VISIBLE="yes">
>     {|
>       print "Hello";
>     |}
>   </SUBMIT>
>
> </SURVEY> 

-- 
Clemens Gruber (Dipl.-Psychologe)
  Zentrum fuer Informationsmanagement und 
  virtuelle Lehre der Universitaet Osnabrueck (virtUOS)

Schloss-Strasse 9, Raum E07, D-49074 Osnabrueck

E-Mail:  [email protected]
URL:     http://www.virtuos.uni-osnabrueck.de

Telefon: (05 41) 969-6505 oder
         (05 41) 969-6501 (Sekretariat)
Fax:     (05 41) 969-16505

Skickat av Clemens Gruber <[email protected]>
till survey-discussion