Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

applet size in Netscape

Hi,

I try to put my applet in a table for avoiding frames. In IE5 works fine but in Netscape 4.7 or NS6 there are problems.
I used frames earlier and it was working fine. Now I removed frames and I put tables instead. My applets are using the 100% for with and height. It's fine in IE because it takes the whole space in the table.
In NS4.7 it displays in a 2x2cm sized window any idea why? Might be that the 100% parameter is not allowed..
In NS6 the size of the applet is the window size and not the size of the table.
I would appreciate any solution. I know that NS has problems with the tables and to put the right size I should use a 1x1 pixel size point.
So how can I put 100% width and height for my applet?
0
kapitany
Asked:
kapitany
1 Solution
 
shyamkumarreddyCommented:
Hi Kapitany

I want to say few things to you.
may be this will be helpful to you.

Allways HTML tags takes up the space of the applet rather than table one.

If u define the size of the applet width tag then table size is not taken.

What do u want ur final output to be
Shyam
0
 
kapitanyAuthor Commented:
I have a table on the full screen. The applet is running on the right side table. The applet parameter are:
<applet
  CODEBASE      = "."
  CODE          = "application.applet.class"
  NAME          = "myvocwords"
  ARCHIVE      = "/common/applet.jar"
  WIDTH        = 100%
  HEIGHT       = 100%
  HSPACE       = 0
  VSPACE       = 0
  ALIGN        = top
  MAYSCRIPT VIEWASTEXT
>
</applet>
So I would like that my applet takes the whole space in the right table. In 4.7 it's just a tigny 1cm x 1cm applet and on N6 it puts the scrollbars because the applet size will be the full screen and therefore if the left side table is added the size is bigger than the window.
0
 
shyamkumarreddyCommented:
Hey Kapitancy

Did u try with exact size rather than 100%

Shyam
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
happynutCommented:
You might try use javascript to work around this bug.

<SCRIPT ID=AutoSizingScript LANGUAGE=JavaScript>
<!--
function window_OnResize()
{
    document.myvocwords.setHTMLSize( innerWidth, innerHeight );
}

function window_OnLoad()
{
    if (navigator.appName == "Netscape" && navigator.appVersion[0] == "4")
       {
           captureEvents(Event.RESIZE);
           onresize=window_OnResize;
       }
}

In your html file,

<BODY BGCOLOR="003668" LANGUAGE="JavaScript" ONLOAD="return window_OnLoad();">

In your applet define a following method.

public void setHTMLSize( String strWidth, String strHeight )
{
         int nWidth  = Integer.parseInt( strWidth  );
         int nHeight = Integer.parseInt( strHeight );
         
         Container container = getParent();
         
         container.setBounds( 0, 0, nWidth, nHeight );
         container.validate();        
}

Hope this helps.
happynut

0
 
NetminderCommented:
Force/accepted by

Netminder
Community Support Moderator
Experts Exchange
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now