On Saturday 02 February 2002 13:56, Terrence Brannon wrote:
> I guess you have all visited map sites or some other site where
> you had the option to hit a submit button to have the page you
> were looking at emailed to you.
>
> If I had to do this in AxKit, I would simply make such a submit
> button request a page in a different directory and setup a
> slightly different pipeline there.
>
> 1 - I am not sure that the earlier stages in the pipeline would
> be cached if you switched the directory of the requested file.
> 2 - I am not sure how to get all data from a previous stage in
> the pipeline as a whole page instead of doing "point
> transformations"... my guess is I would simply do a couple of
> simple Xpathscript calls to get page/head and page/body and then
> send that to Mail::SendMail... which brings up the issue of how
> do Xpathscript requests within in XPS document.
>
Well, the pretty dumb simple way to do it would be to write a script that 
acted as an http client, got another copy of the same page (hopefully from 
cache) and then emailed it to where it was supposed to go. 

However you could also probably put in a handler that would hook the request 
AFTER AxKit in the request processing and have that just mail a copy of the 
content (since its all there at that point). Then you just have a "mail me 
this page" button that reloads the page with ?mail=yes tacked on to the URL 
and your XSP/XPS can snag that flag, set the hook for the handler, and it 
will happen! 
>
> <hacker language="Perl" type="AxKit" uniqueness="just another">
> Terrence Brannon
> </hacker>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to