Stephen, Use this:
on redirect pLocation, pCode if pCode is empty then put "301" into pCode put header "Status:" && pCode # <-- Apache needs that, so I've learned put header "Location:" && pLocation put "redirecting" quit end redirect call it like: redirect "http://www.mysite.com/myfile.irev" (this snippet is from RevSpark minimal framework, http://hg.andregarzia.com/revspark ) :-D On Fri, Feb 11, 2011 at 11:46 PM, Sarah Reichelt <sarah.reich...@gmail.com> wrote: > On Sat, Feb 12, 2011 at 7:57 AM, stephen barncard > <stephenrevoluti...@barncard.com> wrote: >> I'm sure there's a way to do this but I can't seem to find it. >> >> I have a user password script that then is supposed to 'go' to another html >> page but the only way I can get it to work is to use an intermediate file >> (gosite.html) which has a cheesy html redirect command : CONTENT="0;URL= >> http://site.com/private/index.irev"> >> >> I can't figure out what to use to go to another irev page directly. > > You can use "put header" or "put new header" - I use "put new header" > but I'm not sure if that is strictly necessary. > > Here is a script example: > <http://www.troz.net/onrev/samples/showscript.irev?showscript=desktop.irev> > The only trick is that this must come before any other data is "put" > on to the web page. > > Cheers, > Sarah > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- http://www.andregarzia.com All We Do Is Code. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode