Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Force Re-Evaluation of Server Side Script

2 posts in General Discussion (old) Last posting was on 2000-02-10 19:36:14.0Z
Daniel Coppersmith Posted on 2000-02-10 16:58:55.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Force Re-Evaluation of Server Side Script
Date: Thu, 10 Feb 2000 11:58:55 -0500
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: sdn-ar-002insbenP288.dialsprint.net 168.191.108.90
Message-ID: <347_qflobo#c$GA.306@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28975
Article PK: 161337

I have a frame set with a left and right side. The left side is a menu
(menu.html) and the right side is content.

Menu.html has Dynascript in it that uses psSession.GetValue("userID") to see
if the user is logged on. If userID is null (not logged in) then they get
one set of options, if they are logged in, they get a different set of
options.

The validateLogon.html uses psSession.SetValue("userID", xxxxx) to write the
user id after a sucessful logon. The page then executes JavaScript to reload
the frame using: parent.location = "home.html"

The problem is (I think), that PD does not re-evalulate the server side
script and so it never realizes that the userID is changed.

Is there a way to force PowerDynamo to re-evaluate the server side scripts
everytime it visits the page?


Carson Hager[Team Sybase] Posted on 2000-02-10 19:36:14.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Force Re-Evaluation of Server Side Script
Date: Thu, 10 Feb 2000 19:36:14 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 51
NNTP-Posting-Host: 63.86.26.206
Message-ID: <347_38a31058.11697780@forums.sybase.com>
References: <347_qflobo#c$GA.306@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28969
Article PK: 161332

It does re-evaluate it the scripts if the page is actually requested.
If the browser is caching it, which it should not be doing, PD doesn't
even have a chance. You can use something like the following.

frame.location.href = frame.location.href;

Or you could always call redirect.


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Thu, 10 Feb 2000 11:58:55 -0500, "Daniel Coppersmith"

<daniel@NO.SPAM.infrontsoftware.com> wrote:

>I have a frame set with a left and right side. The left side is a menu
>(menu.html) and the right side is content.
>
>Menu.html has Dynascript in it that uses psSession.GetValue("userID") to see
>if the user is logged on. If userID is null (not logged in) then they get
>one set of options, if they are logged in, they get a different set of
>options.
>
>The validateLogon.html uses psSession.SetValue("userID", xxxxx) to write the
>user id after a sucessful logon. The page then executes JavaScript to reload
>the frame using: parent.location = "home.html"
>
>The problem is (I think), that PD does not re-evalulate the server side
>script and so it never realizes that the userID is changed.
>
>Is there a way to force PowerDynamo to re-evaluate the server side scripts
>everytime it visits the page?
>
>
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com