Re: How to make EmbPerl stuff new content into a existing frame?

2000-01-20 Thread Gerald Richter


 When the user hits the login button, I am calling a CGI script that
 validates the login against a database.  I can't make it have a action
 that loads a HTML page before the script is executed.  Therefore the
 script has to reload the frame with frame pages.  I also need to pass
 values to the frame, as in the example link above.

 Can you make a redirection have a "target=frame" and
 "?parameter=value" to do this?

No you can't do this, but you can say in your form  form action=".."
target="frame", so the cgi script will displayed on the whole screen, when
the cgi does the redirect, it will request the frame page

Gerald




RE: How to make EmbPerl stuff new content into a existing frame?

2000-01-19 Thread Scott Chapman

On 19 Jan 00, at 7:41, Gerald Richter wrote:

 
  Here's the situation:
  The user loads this page with the two frames.  The left frame is the
  navigation frame.  The user clicks on the left frame the link to log in.
  The right frame changes to the login screen and they login.  When
  they are done, I want the server to populate the frame "index" with
  the required data.  I don't know how to do this.
 
  It seems a redirection in EmbPerl would do it but I don't know
  how to make a
  redirection with a TARGET.  Any clues?
 
 A redirect with a TARGET other then the frame that send the redirect isn't
 possible as far as I know. 

This link is in frame indxcont and updates frame index.  It works:
A 
HREF="/login/indxnav1.epl?session_id=[+$session_ID+]digest=[+$
digest+]"  TARGET="index"

 You could either use some JavaScript to update
 the other index, or that's what I prefer, reload the whole frame (when the
 user hit's the login button -  form action=" ..." target="..."), with
 different frame pages. Then the frame parentpage has also to be an Embperl
 page an passes the parameters along the the actual content pages.

When the user hits the login button, I am calling a CGI script that 
validates the login against a database.  I can't make it have a action 
that loads a HTML page before the script is executed.  Therefore the 
script has to reload the frame with frame pages.  I also need to pass 
values to the frame, as in the example link above.

Can you make a redirection have a "target=frame" and 
"?parameter=value" to do this?

--
Scott Chapman
Technical Support Specialist
Lund Performance Solutions
[EMAIL PROTECTED] or [EMAIL PROTECTED]
Phone: 541-926-3800 www.lund.com



Re: How to make EmbPerl stuff new content into a existing frame?

2000-01-18 Thread Scott Chapman

On Mon, 17 Jan 2000, you wrote:
 Why do you need this intermediate step i.e. 
 A
 HREF="/login/indxnav1.epl?session_id=[+$session_ID+]digest=[+$digest+]"
 TARGET="index"Update..
 ?
 
 Why not just get the server to populate frame index with required data
 up front ? Or have I missed something here ?

Here's the situation:
The user loads this page with the two frames.  The left frame is the 
navigation frame.  The user clicks on the left frame the link to log in.  
The right frame changes to the login screen and they login.  When 
they are done, I want the server to populate the frame "index" with 
the required data.  I don't know how to do this.

It seems a redirection in EmbPerl would do it but I don't know how to make a 
redirection with a TARGET.  Any clues?

TIA,





Re: How to make EmbPerl stuff new content into a existing frame?

2000-01-18 Thread David Emery

At 21:17 -0800 00.1.18, Scott Chapman wrote:
 On Mon, 17 Jan 2000, you wrote:
  Why do you need this intermediate step i.e. 
  A
  HREF="/login/indxnav1.epl?session_id=[+$session_ID+]digest=[+$digest+]"
  TARGET="index"Update..
  ?
  
  Why not just get the server to populate frame index with required data
  up front ? Or have I missed something here ?
 
 Here's the situation:
 The user loads this page with the two frames.  The left frame is the 
 navigation frame.  The user clicks on the left frame the link to log in.  
 The right frame changes to the login screen and they login.  When 
 they are done, I want the server to populate the frame "index" with 
 the required data.  I don't know how to do this.
 
 It seems a redirection in EmbPerl would do it but I don't know how to make a 
 redirection with a TARGET.  Any clues?
 
 TIA,

I missed part of this thread somewhere along the way, so sorry if I'm re-covering old 
ground here...

I assume that dumping the frames altogether is not an option for you.

Sounds like what you need to do is have the log-in form aimed at target _top, to 
reload the whole frameset. The frame-set page would may have to be an Embperl page, 
(or be otherwise output dynamically to decide what to load into each frame and 
possibly send params to the in-frame pages) which would in turn load the correct pages 
(Embperl or not) into the two frames.

Another option would be using Javascript to control what page gets put into what 
frame, as I believe someone else mentioned.

Hope that helps. Confuses the hell out of me...

- dave

"It's a thankless job, but I've got a lot of  Karma to burn off."



RE: How to make EmbPerl stuff new content into a existing frame?

2000-01-18 Thread Gerald Richter


 Here's the situation:
 The user loads this page with the two frames.  The left frame is the
 navigation frame.  The user clicks on the left frame the link to log in.
 The right frame changes to the login screen and they login.  When
 they are done, I want the server to populate the frame "index" with
 the required data.  I don't know how to do this.

 It seems a redirection in EmbPerl would do it but I don't know
 how to make a
 redirection with a TARGET.  Any clues?

A redirect with a TARGET other then the frame that send the redirect isn't
possible as far as I know. You could either use some JavaScript to update
the other index, or that's what I prefer, reload the whole frame (when the
user hit's the login button -  form action=" ..." target="..."), with
different frame pages. Then the frame parentpage has also to be an Embperl
page an passes the parameters along the the actual content pages.

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



Re: How to make EmbPerl stuff new content into a existing frame?

2000-01-16 Thread Andre Landwehr

On Sat, Jan 15, 2000 at 01:16:06PM -0800, Scott Chapman wrote:
 I have a HTML document with two frames in it.  I need to make EmbPerl put a new
 html file (or content) into this frame.  This link in a regular HTML file does
 the trick but I don't want the user to have to hit a link to make this happen.
 
 A HREF="/test.epl?TestVar=1" TARGET="index"Update Frame/A
 
 Can anyone tell me how to do this?  


I never did this myself but I think you should look at your
favourite Javascript documentation for this. Something about a
BODY onload="..." in the first frame and a call to the "open"
method of your second frame should do. I don't know if you can
choose the frame for your output with Embperl or any other
serverbased language for that matter, since the browser requests
a page and displays it at the appropriate place.

Andre


 PGP signature