>>>>> "john" == John S J Anderson <[EMAIL PROTECTED]> writes:

john> 2) encode '?_state=Login' into the URL in the href attribute (or various
john>    other schnanigans with specifying some state in the URL -- use
john>    'state=login' and switch on that in the respond_per_page() in the
john>    base class, for example)

I've used this, and recommend this.  In the fictional
CGI::Prototype::Cookbook, I have this:

    USE selfcgiurl = url(self.CGI.url({ path => 1 }));
    BLOCK link;
    #      [ state = "new state" ] (defaults to current state)
    #      [ other = { ... } ] (additional URL params)
      csp = self.config_state_param;
      DEFAULT state = self.param(csp);
      DEFAULT other = {};
      other.$csp = state;
      selfcgiurl(other);
    END;

Then I can say:

  [% WRAPPER link state = "Login" %]Login![% END %]

Note that this requires config_state_param to not begin with an
underscore or dot, thanks to some odd interactions with TT's
restrictions.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
cgi-prototype-users mailing list
cgi-prototype-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cgi-prototype-users

Reply via email to