------=_NextPart_000_009F_01BE7124.E341E360
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

A WORedirect could also be used to redirect back to the refer.

Paul

    -----Original Message-----
    From: Derin Bluhm <[EMAIL PROTECTED]>
    To: Multiple recipients of list <[EMAIL PROTECTED]>
    Date: Thursday, March 18, 1999 9:21 AM
    Subject: Re: Back A Page Link
   =20
   =20
    Mark -
    One method is to create a previousPage instance variable on the new =
page, then in the action method that creates the new page do something =
like
   =20
- gotoNextPage {
        WOComponent *woPage;
        woPage =3D [[self application] pageWithName:nextPageName];
        [woPage setPreviousPage:self];
        return woPage;
}

Then create a back button or link that returns previousPage.
   =20
   =20
    I use the referer when moving to a WOApp from static HTML then back =
to the static HTML page. You can go between apps as well.
   =20
    On the target app, get the referer (doesn't always exist) from the =
request, do your processing, return result page, then go back to =
referer. I usually use a meta refresh scheme to the users sees the final =
app page, then is automatically returned to the referer.
   =20
*.m
***************************
- init {
    [super init];
    request =3D [[[self session] context] request];
    return self;
}

- (NSString *)referer {
    return  [request headerForKey:@"referer"];
}

- (NSString *)refreshMetaTagString {
    NSString *tempString;
    tempString =3D [NSString stringWithFormat:@"<META =
http-equiv=3D\"Refresh\"; content =3D \"5; URL=3D%@\">",[self referer]]; =

    return tempString;
}
*************************************
*.wod
**************************************
refreshMetaTag:WOString {
        value   =3D refreshMetaTagString;
        escapeHTML =3D NO;
}

*************************************
*.html
***********************************


    Title string here./TITLE>
    <WEBOBJECT name=3DrefreshMetaTag></WEBOBJECT>

   =20
        ...
   =20

****************************************

Home this helps, Derin.

You wrote:
> At 8:13 AM -0800 3/18/99, Pierce T. Wetter III wrote:
> How does one make a "Return To Previous Page" link?  I would think it =
would
> just be a matter of getting the "referer" URI/URL.
>=20
> Javascript is an easier way to do this then WO. The browser already
> knows what the previous URL was so its just one line of Javascript to
> do this. Its something like "history.back()".
>=20
> We've got a "no javascript" directive... along with a few others.  We =
need
> to be compatible with set top boxes and not all handle javascript.
>=20
> On the other hand, it depends on exactly why you want to do this.
> For UI reasons, you might want to have a "back to Movies" from the
> talent editor, or some other kind of "conceptual previous page".
>=20
> If someone goes to the About, Help, or Contact page from anywhere in =
the
> site (they are universal jump points on our site) I'd like the user to =
go
> back to their previous page instead of some fixed point.
>=20
> I prefer the javascript method, but can't rely on it.
>=20
> mark
> =
-------------------------------------------------------------------------=
--
> Mark F. Murphy, Director Software Development   <` =
`mailto:[EMAIL PROTECTED]>
> Tyrell Software Corp                            <` =
`http://www.tyrell.com>
> PowerPerl(tm), Add Power To Your Webpage!       <` =
`http://www.powerperl.com>
> =
-------------------------------------------------------------------------=
--
> Member of Families Against Internet Censorship: =
rainbow.rmi.net/~fagin/faic
>=20
>=20
>=20



------=_NextPart_000_009F_01BE7124.E341E360
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>A WORedirect could also be used to =
redirect back=20
to the refer.</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Paul</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
    <DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
    </B>Derin Bluhm &lt;<A=20
    =
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>&gt;<BR><B>To:=20
    </B>Multiple recipients of list &lt;<A=20
    =
href=3D"mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</A>&gt;=
<BR><B>Date:=20
    </B>Thursday, March 18, 1999 9:21 AM<BR><B>Subject: </B>Re: Back A =
Page=20
    Link<BR><BR></DIV></FONT>Mark -<BR>One method is to create a =
previousPage=20
    instance variable on the new page, then in the action method that =
creates=20
    the new page do something like<BR><PRE>- gotoNextPage {
        WOComponent *woPage;
        woPage =3D [[self application] pageWithName:nextPageName];
        [woPage setPreviousPage:self];
        return woPage;
}

Then create a back button or link that returns =
previousPage.</PRE><BR><BR>I=20
    use the referer when moving to a WOApp from static HTML then back to =
the=20
    static HTML page. You can go between apps as well.<BR><BR>On the =
target app,=20
    get the referer (doesn't always exist) from the request, do your =
processing,=20
    return result page, then go back to referer. I usually use a meta =
refresh=20
    scheme to the users sees the final app page, then is automatically =
returned=20
    to the referer.<BR><PRE>*.m
***************************
- init {
    [super init];
    request =3D [[[self session] context] request];
    return self;
}

- (NSString *)referer {
    return  [request headerForKey:@&quot;referer&quot;];
}

- (NSString *)refreshMetaTagString {
    NSString *tempString;</PRE>tempString =3D [NSString=20
    stringWithFormat:@&quot;&lt;META http-equiv=3D\&quot;Refresh\&quot;; =
content =3D=20
    \&quot;5; URL=3D%@\&quot;&gt;&quot;,[self referer]]; <PRE>    return =
tempString;
}
*************************************
*.wod
**************************************
refreshMetaTag:WOString {
        value   =3D refreshMetaTagString;
        escapeHTML =3D NO;
}

*************************************
*.html
***********************************


    Title string here./TITLE&gt;
    &lt;WEBOBJECT name=3DrefreshMetaTag&gt;&lt;/WEBOBJECT&gt;

   =20
        ...
   =20

****************************************

Home this helps, Derin.

You wrote:
&gt; At 8:13 AM -0800 3/18/99, Pierce T. Wetter III wrote:
&gt; How does one make a &quot;Return To Previous Page&quot; link?  I =
would think it would
&gt; just be a matter of getting the &quot;referer&quot; URI/URL.
&gt;=20
&gt; Javascript is an easier way to do this then WO. The browser already
&gt; knows what the previous URL was so its just one line of Javascript =
to
&gt; do this. Its something like &quot;history.back()&quot;.
&gt;=20
&gt; We've got a &quot;no javascript&quot; directive... along with a few =
others.  We need
&gt; to be compatible with set top boxes and not all handle javascript.
&gt;=20
&gt; On the other hand, it depends on exactly why you want to do this.
&gt; For UI reasons, you might want to have a &quot;back to Movies&quot; =
from the
&gt; talent editor, or some other kind of &quot;conceptual previous =
page&quot;.
&gt;=20
&gt; If someone goes to the About, Help, or Contact page from anywhere =
in the
&gt; site (they are universal jump points on our site) I'd like the user =
to go
&gt; back to their previous page instead of some fixed point.
&gt;=20
&gt; I prefer the javascript method, but can't rely on it.
&gt;=20
&gt; mark
&gt; =
-------------------------------------------------------------------------=
--
&gt; Mark F. Murphy, Director Software Development   &lt;` =
`mailto:[EMAIL PROTECTED]&gt;
&gt; Tyrell Software Corp                            &lt;` =
`http://www.tyrell.com&gt;
&gt; PowerPerl(tm), Add Power To Your Webpage!       &lt;` =
`http://www.powerperl.com&gt;
&gt; =
-------------------------------------------------------------------------=
--
&gt; Member of Families Against Internet Censorship: =
rainbow.rmi.net/~fagin/faic
&gt;=20
&gt;=20
&gt;=20
</PRE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_009F_01BE7124.E341E360--

Reply via email to