Solved

Converting from full window to frames - Java Applet Link Problems

Posted on 1998-08-23
11
196 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
 

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now