Solved

Converting from full window to frames - Java Applet Link Problems

Posted on 1998-08-23
11
200 Views
Last Modified: 2011-09-20
I manage a medium sized Intranet site and recently it has become necessary to convert a section of the site from full pages to frames.

The frame is a simple division of two, with a header at the top and a  main large window below.

All has gone reasonably well apart from certain hyperlinks inside the original FULL pages which are link via a Java Applet. A sample of which is below:-

<applet code="fphover.class" width="120" height="24">
      <param name="text" value="Home">
      <param name="color" value="#000080">
      <param name="hovercolor" value="#00FFFF">
      <param name="textcolor" value="#FFFFFF">
      <param name="effect" value="reverseGlow">
      <param name="url" value="organise.htm"  valuetype="ref">
      <param name="bgcolor" value="#FFFFFF">
      <param name="font" value="Helvetica">
      <param name="fontstyle" value="regular">
      <param name="fontsize" value="14">
    </applet>

These Java Applet 'hover button' links will always open into a new full window, rather than inside the frame. Whereas all other non-Java links open inside the frame as intended. Is there anything I can do to make the link open inside the frame?

I'm also copying this question to the Java section for no points - just to catch the right expert - but please answer here - naturally ;-)
0
Comment
Question by:bigstar
  • 6
  • 2
  • 2
  • +1
11 Comments
 

Author Comment

by:bigstar
ID: 1836916
Edited text of question
0
 
LVL 1

Expert Comment

by:dagon
ID: 1836917
Try

<base target="frame name"> For the pages with the applet
(_self, _parent, _top if appropriate)

0
 

Author Comment

by:bigstar
ID: 1836918
OK Dagon - will try and report my findings - thanks.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:bigstar
ID: 1836919
Dagon - I'm working in FrontPage by the way - which does do some strange things - but I can't seem to make it work.

Tried placing <base target="main_self"> on it's own line both before and after the URL reference - FPage removes it!

Tried expressing it as the following:

      <param name="url" value="organise.htm"  valuetype="ref">
      <param name="base target" value="main_self">
      <param name="bgcolor" value="#FFFFFF">

FPage ignored it

I did get one result, when I tried to use the expression as an argument tacked onto the URL parameter, where I got the browser to open a new window. Not what I wanted, but a result!

Anyway I can't seem to reproduce that response.

Am I writing this out incorrectly - help!
0
 

Author Comment

by:bigstar
ID: 1836920
Dagon

Hold the front page.I Persevered and this works:

<param name="target" value="_self">
<param name="url" value="organise.htm" valuetype="ref">

so many many thanks - please re post your comment as an answer and the 50 points, a big pat on the back and whatever else you want are yours.

0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1836921
Sorry to say that those ideas will not work.. You see, the paramaters you pass any applet must have been programmed into the applet by the programmer... You cannot simply assign random variables and expect it to put it where you want it to... This is just in the Java  code...

Either rewrite the java code, or you can change to text links..

0
 

Author Comment

by:bigstar
ID: 1836922
MasseyM - You may have a point, but I assume this parameter must be in the original Java Code, cos it works mate - honest!

<param name="target" value="_self">
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1836923
Sorry bigstar... That is not true... I use J++ from Microosft and that is not a default paramater... You must first define it as so...

0
 
LVL 5

Expert Comment

by:Trevor013097
ID: 1836924
MasseyM,

I think that it must already be a preprogrammed parameter that bigstar was not previously using.  I am sure that if he says it works then it must do.

Trevor.


0
 
LVL 1

Accepted Solution

by:
dagon earned 50 total points
ID: 1836925
Glad it worked.

Try

<base target="frame name"> For the pages with the applet
(_self, _parent, _top if appropriate)

0
 

Author Comment

by:bigstar
ID: 1836926
MasseyM - As trevor says "it must already be a preprogrammed parameter that (I) was not previously using". Although the WYSIWYG editor in FrontPage does not include a way to edit or add this parameter - it must exist cos believe me it really does work.

Dagon - here's your points - thanks again - think you've caused a minor controversy here!

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide cell in a table 2 27
How to resize a div in html 3 39
Using HTML5 and CSS How to place one element in front of another elemen 7 34
Set time on Session (ASP) 14 23
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question