Archive of UserLand's first discussion group, started October 5, 1998.

[Mini-how to] Easy redirect, easy include

Author:Tommy Sundström
Posted:4/14/1999; 3:16:49 PM
Topic:[Mini-how to] Easy redirect, easy include
Msg #:5021
Prev/Next:5020 / 5022

Cool thing:

When serving pages through mainResponder you can have a cell (of type string) just containing this macro:

{mainResponder.redirect("http://an.url")}

Useful for:

o Including a discussion thread in the structure of a 'normal' website. Maybe you have a text that you want to get opinions on/discuss before it is permanently placed in the site.

o Make a shortcuts table, so that you can give out short domain names to pages that realy are burried deep down in the hierarcy.


This also works the other way. If you have a cell (of type string) with the following text:

{string(memepool.messages.["0000014"].body)}

it will include that text. (But the page will have a wacky title.)

(It will not work with just {memepool.messages.["0000014"].body} , since that text is included as soon as the cursor leaves the cell.)




This page was archived on 6/13/2001; 4:49:21 PM.

© Copyright 1998-2001 UserLand Software, Inc.