Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Anyone has experience using OAS building Web applications ? PROBLEM: Web client session - retaining values during session life.

Re: Anyone has experience using OAS building Web applications ? PROBLEM: Web client session - retaining values during session life.

From: Thierry Thomas <tthomas_at_mail.dotcom.fr>
Date: Wed, 13 Oct 1999 22:54:57 +0200
Message-ID: <7u2rik$j1a$1@minus.oleane.net>


Dans l'article <7u1muf$uie$1_at_as102.tel.hr>, keso <keso_at_hep.tel.fer.hr> écrivait :
> So if I wold want to store some user-input like username into a variable
> that has a scope of session (dies when Web client session dies), I don't
> know how to accomplish this.
>

Under certain conditions, I use the "hack of the hidden form"...

If you only need your persistent variables for a client-side usage AND your application runs inside a frame AND at least one of your frames is not refreshed (e.g. menu or logo) AND JavaScript is enabled on your clients:

  1. Build an HTML form in your fixed frame, with an <INPUT> field for each persistent variable; this form has a NAME, but no ACTION; for each <INPUT> field the TYPE is HIDDEN, so your form won't be visible.
  2. From your PL/SQL packages, you can build JavaScript in your application frame; this script can write some values in your <INPUT> fields (the syntax is parent.framename.document.formname.controlname.value), and thereafter another script will be able to read these values.

Remark: if an user refresh the entire document, your values will be lost.

[fu2 comp.databases.oracle.tools]
--
Th. Thomas
Freeze Peaches on the Nett ! - http://altern.org/graffitit Received on Wed Oct 13 1999 - 15:54:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US