Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 05 OCT 1999 07:27:02PM Tom Horan wrote:

How can I have an RBasic program fource a new HTTP address.

Example;

I have a frame (http://INET_FRAME):

screen one is a menu frame with links that display in screen two
screen two is a display only page.

How can I change the HTTP address in my rbasic program to a non frame screen (IE: HTTP://INET_LOGIN).

Steps the user press on a link on the menu. This run a rbasic program that normally returns a display screen (in screen 2). So normally the HTTP address never changes. Instead I want to transfer the user back to a login screen which has a totally different http address.

My rbasic programs knows to return the login html, but it displays in screen 2. I want to remove the frame and display only the login screen. Any ideas?


At 06 OCT 1999 06:51AM Andrew Carey wrote:

Hi Tom,

Not sure exactly how to do this, but this Javascript reference may be of use. http://developer.netscape.com/tech/javascript/index.html

No doubt someone else will be able to tell you the precise code.

best regards,

Andrew.


At 06 OCT 1999 10:07AM Oystein Reigem wrote:

Tom,

If you had a static login window Login.htm instead of a dynamic one you could achieve what you want with a link

Login

See if you can get this to work with a dynamic HREF as well.

Else you might have to resort to some JavaScript programming.

- Oystein -


At 06 OCT 1999 01:12PM Carl Pates wrote:

[notag]Tom,

If you want to use JS, return an HTML page that executes this script:

top.location.href = "./INET_LOGIN"

That should go back to the server load in the form for you..

Alternatively, you could put this in your Login HTML page in the <head> tag:

<script language="JavaScript">

if ( top.location.href != window.location.href )

{

 top.location.href = window.location.href;

}

</script>

Carl Pates

Sprezzatura Group[/notag]


At 08 OCT 1999 03:32PM Tom Horan wrote:

Carl,

Never though of the javascript, but that sounds like the the ticket. Thanks.

Also thanks to Oystein and Andrew for your comments.


At 11 OCT 1999 08:22AM Oystein Reigem wrote:

Tom,

I checked and my approach does work with a dynamic link.

I used a page Frames.htm with two frames

frames

The content of the leftmost frame - Page.htm - had both static and dynamic links (I used a call to Inet_Trace instead of a call to a function returning a login page, but the principle's the same):

page

static links

_top

_self

dynamic links

TARGET _top

TARGET _self

- Oystein -

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/73d3e22e7bad92f8852568010080d1a2.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1