Netscape 7 Java plugin. (RH8)

Place to discuss Fedora and/or Red Hat

Netscape 7 Java plugin. (RH8)

Postby ZiaTioN » Fri Oct 17, 2003 8:29 am

I have recently put forth some effort to get my Xwindows up to par. I usualy just ssh into my box and use cli to interface but have decided to try the GUI a little more.

I never really liked the layout of Mozilla so I installed Netscape 7 yesterday. I know Mozilla is a version of Netscape or at least based on it but the actual layout is different.

Anyway my problem is with the java plugin. I installed jre 1.4.2 using the rpm available for it from the Sun website. It installed successfully and currently resides in /usr/java.

For some reason java apps still are a no-show in my browser. Have I forgot or missed a step? I imagine it should autpo run or auto detect when it is needed to be used or is there a setup in Netscape where I have to associate the runtime environment with the browser or with certain file types?
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Fri Oct 17, 2003 8:57 am

It's actually the other way around. Netscape is a version of Mozilla. When Netscape releases a new version they just take a stable version of Mozilla and add in some marketing garbage. I have never installed java and had it install into a location that is in my PATH and what I usually do is create symbolic links in /usr/bin that point to the actual java executables in /usr/java/blah/blah/bin/.

You also need to install the java plugin into your browser's plugin directory (or your personal plugin directory). For mozilla this would be /usr/lib/mozilla-version, for Netscape it is probably /usr/lib/netscape.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Fri Oct 17, 2003 10:41 am

Yeah in the last few days of using it I have noticed that netscape has everything that I hated about Mozilla also. Both Mozilla and Netscape do not parse html tables correctly and set weird shades of colors to custom html colors (by custom I mean not the normal "white", "black", etc. I mean like #C0C0C0, or #404040.)

In some of my tables I specifically align the tables in a certain spot and when I view them in IE they show up correctly, but in Mozilla and Netscape they are all off center or on the left when I specifically align them to center.

Another thing is my cgi scripts. I use the CGI qw(:all) module and I give the cgi pages certain background color and white text. In IE they show correctly but in Netscape and Mozilla the background color is ignored and defaults to white but the text stays white so of course I cannot see any of my text.

Anyway I will have to try the steps you mentioned later.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Fri Oct 17, 2003 10:48 am

If they show up "properly" in IE and not in Mozilla then you most likely have not coded it correctly. Mozilla/Netscape do not default to "white" like IE does if you do not specify a color. For instance, if you do not use "BODY BGCOLOR=white" in your code, your main body background color will be some off gray color. I would have to see your table code to be able to tell what problem you might be having with your code.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Fri Oct 17, 2003 7:31 pm

Code: Select all
<html>
<head><title>Christian Youth Zone</title>


<script language="JavaScript">
<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->
</script>

<SCRIPT language=JavaScript1.2>

function Get_Date() {

        var today = new Date();

        var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");



        month = today.getMonth();

        date = today.getDate();

        year = today.getYear() + "";



        Year = "20"+ year.substring(year.length-2,year.length)



        document.write(monthNames[month]+" "+date+", "+Year);

}



function getQuote() {

   now = new Date();

   var randomNumber = (now.getSeconds() % 7) + 1;



}



function MM_callJS(jsStr) { //v2.0

  return eval(jsStr)

}

//-->

</SCRIPT>
</head>

<body background="images/texture.jpg">
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr align=center>
  <td width="20" valign="top" height="2"><img src=images/topleft.gif width=20 height=26></td>
  <td height="2" colspan="1" bgcolor="000066"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tr align=center>
      <td width=100%><Font color=#000066 face=Garamond>Christian Youth Zone</Font>
     </tr></table>
  </td>
  <td width="20" valign="top" height="2"><img src=images/topright.gif width=20 height=26></td>
 </tr>
</table>
<table cellspacing=0 cellpadding=0 bgcolor="666666" height=1000 width=800 border=10 bordercolor=000066 frame=vsides rules=cols valign=middle align=center>
 <tr height=5% width=100% valign=top align=center>
  <td>
   <table cellspacing=0 cellpadding=0 border=0 valign=middle align=center height=150 width=100%>
    <tr>
     <td>
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
        id="newbanner" width="100%" height="100%">
        <param name="movie" value="newbanner.swf">
        <param name="quality" value="high">
        <param name="bgcolor" value="#666666">
        <embed name="newbanner" src="newbanner.swf" quality="high" bgcolor="#666666"
          width="100%" height="100%"
          type="application/x-shockwave-flash"
          pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
        </embed>
      </object>
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr valign=top align=center height=1% width=100%>
  <td valign=top align=center>
   <table cellspacing=0 cellpadding=0 border=0 valign=middle align=center height=10 width=100%>
    <tr align=center>
     <td>
      <Font color="red" size="+1">.::|</Font>
      <a href="index.html" target="_self"><Font color=000099 onMouseover="this.style.color='DDE7A9'" onMouseout="this.style.color='000099'" size="+1">Home</FONT></a>
      <Font color="red" size="+1">|</Font>
      <a href="phpBB2/index.php" target="_self"><Font color="000099" onMouseover="this.style.color='DDE7A9'" onMouseout="this.style.color='000099'" size="+1">Forum</FONT></a>
      <Font color="red" size="+1">|</Font>
      <a href="music.html" target="_self"><Font color="000099" onMouseover="this.style.color='DDE7A9'" onMouseout="this.style.color='000099'" size="+1">Music</FONT></a>
      <Font color="red" size="+1">|</Font>
      <a href="news.html" target="_self"><Font color="000099" onMouseover="this.style.color='DDE7A9'" onMouseout="this.style.color='000099'" size="+1">News</FONT></a>
      <Font color="red" size="+1">|::.</Font>
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr height=1% width=10% valign=top align=center>
  <td>
   <table cellspacing=0 cellpadding=0 border=0 height=10 width=100%>
    <tr valign=middle align=right>
     <td>
      <FONT color=660000 face=Garamond size=+1><B><SCRIPT>Get_Date();</SCRIPT>&&&&</B></FONT></P>
     </td>
    </tr>
   </table>
  </td>
 </tr>
 <tr height=50% width=80%>
  <td>
   <iframe
        src="lframe.html"
        width=450 height=700
        align=center
        >
   <table cellpadding=5 border=0 align=left>
   <tr><td>See
   <a href="lframe.html"> the lyrics page. </a></td></tr>
   </table>
   </iframe>
  </td>
 </tr>
 <tr>
  <td>
   <blockquote>
    <br></br>
  </blockquote>
 </tr>
 <tr height=2% width=100%>
  <td valign=bottom align=center>
  <Font color=white size="-1">This page is viewed best under 1280x1024 screen resolution.</Font>
  <Font color=white size="-1">Click <a href="resset.doc" target="_new"><Font color=FFCC00 size="-1">here</Font></a><Font color=white size="-1"> to find out how to change this setting.</Font>
  </td>
 </tr>
</table>
<table width="800" border="0" cellspacing="0" cellpadding="0" align="center">
 <tr align=center>
  <td width="20" valign="top" height="2"><img src=images/bottomleft.gif width=20 height=26></td>
  <td height="2" colspan="1" bgcolor="000066"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tr align=center>
      <td width=100%><Font color=#000066 face=Garamond>Christian Youth Zone</Font>
     </tr></table>
  </td>
  <td width="20" valign="top" height="2"><img src=images/bottomright.gif width=20 height=26></td>
 </tr>
</table>

<script language="JavaScript1.2"><!--
/*---For 3D scrollbars. Colors: line1 - #FFFF00, line2 - #FFFF66, face1 - #FFFF00, face2 - #FFFF66*/
function clrBar(line,face)
                {
                with(document.body.style)
                        {
                        scrollbarDarkShadowColor=line;
                        scrollbar3dLightColor="white";
                        scrollbarArrowColor="#FFCC00";
                        scrollbarBaseColor=face;
                        scrollbarFaceColor=face;
                        scrollbarHighlightColor="white";
                        scrollbarShadowColor="gray";
                        scrollbarTrackColor="AF1814";
                        }
                }function setcolor()
                {
                var w = document.body.clientWidth;
                var h = document.body.clientHeight;
                var x = event.clientX;
                var y = event.clientY;
                if(x>w) clrBar("660000","660000"); // Colors of active state
                else clrBar("#660000","#660000"); // Colors of normal state
                }
if (document.all){
clrBar(null,null);
document.onmousemove=setcolor;
}
//------- Source Code Generator - La Minh Khanh ------ //
-->
</script>

<style type="text/css">
<!--
a:link, a:visited { text-decoration: none }
a:hover { text-decoration: none}
-->
</style>


</body>

<script language="JavaScript">
<!--

window.open = SymRealWinOpen;

//-->
</script>

</html>



That is the source for the page I am talking about. It is actually the iframe that aligns left in Netscape but is clearly coded to align center. Sizes and stuff are off too like my flash movies on the site.

You can see the pagehere.

The white background I mentioned had to do with the cgi scripts I write. It could be a problem parsin g the sudo html in the cgi script. here is the source for that script (which I know is correct).

Code: Select all
#!/usr/bin/perl -w

use strict;
use CGI qw(:all);
my($choice, $cellrate, $cellsize, $c_to_b, $bps, $loop, $again, $p);

$p = new CGI();

print header, start_html({-title=>"Cell Rate Convertor", -bgcolor=>'666666'}), center(h2(font({-face=>'Garamond',
-color=>'white'}, "Cell Rate Convertor")));


if (param('choice')) {
   convert();
}elsif (param('cellsize')) {
   cell_answer();
}elsif (param('cellsize2')) {
   bps_answer();
}else{
   info();
}

sub info {
   print start_form(), hr;
   print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Please choose which conversion method you are using.")));
   print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Converion type:", "& &",
   popup_menu('choice', ['Cells to Bits', 'Bits to Cells']))));
   print center(p(submit('Submit')));
   hidden('choice', '$choice');
   print end_form, hr, end_html;
}

sub convert {
   $choice = param('choice');;
   if ($choice eq "Cells to Bits") {
      print start_form(), hr;
      print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Enter the cell rate you want to convert.")));
      print center(p(textfield('cellrate','')));

      print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Enter the cell size (in bytes) that you are using")));
      print center(p(textfield('cellsize','')));
      print center(p(submit('Submit')));

      $cellrate = param('cellrate');
      $cellsize = param('cellsize');

      hidden('cellrate', '$cellrate');
      hidden('cellsize', '$cellsize');
      hidden('choice', '$choice');
      print end_form, hr, end_html;

      sub cell_answer {
         $cellrate = param('cellrate');
         $cellsize = param('cellsize');
         $choice = param('choice');
         $c_to_b = $cellrate * $cellsize * 8;

         print start_form(), hr;
         print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Your cellrate of $cellrate is equal to $c_to_b bps.")));
         print center(p(submit('Again')));

         $choice = "";
         $cellsize = "";
         hidden('cellsize', '$cellsize');
    hidden('choice', '$choice');
         print end_form, hr, end_html;
      }
   }
   elsif ($choice eq "Bits to Cells") {
      print start_form(), hr;
      print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Enter the bits per second you want to convert (not bytes).")));
      print center(p(textfield('bps','')));

      print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Enter the cell size (in bytes) that you are using")));
      print center(p(textfield('cellsize2')));
      print center(p(submit('Calculate')));

      hidden('bps', '$bps');
      hidden('cellsize2', '$cellsize');
      print end_form, hr, end_html;

      sub bps_answer {
         $bps = param('bps');
         $cellsize = param('cellsize2');
         $cellrate = $bps / 8 / $cellsize;

         print start_form(), hr;
         print center(p(font({-face=>'Garamond', -color=>'white', -size=>'5'}, "Your peak cell rate for $bps bps is $cellrate.")));
         print center(p(submit('Again')));

         $choice = "";
         $cellsize = "";
         hidden('cellsize2', '$cellsize');
         hidden('choice', '$choice');
         print end_form, hr, end_html;
      }
   }
}


You can see this script in actionhere
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Fri Oct 17, 2003 9:47 pm

Regarding your CGI script (which I can't get to in your link above) use "#666666" rather than "666666" which should fix it as you can see:

http://voidmain.is-a-geek.net/cy/converter.cgi

As far as your HTML page I hope I don't upset you and you can take this as constructive criticism but there are a couple of things I don't care for about it and I believe are commonly frowned upon for web design (of course this is coming from someone with the crappiest looking site on the internet so take it with a grain of salt).

The first thing I don't like about it is the forcing of flash on me. The second thing but a lesser problem is coding heavily to a 1024x768 base. Believe it or not a lot of people (mostly older I think) use 800x600 still although I usually prefer somewhere between 1024x768 to 1280x1024 range. It's nice if the page can adjust nicely to any major resolution or browser size.

Probably the single biggest issue I have is the Word DOC to explain how to adjust screen resolution. This really should be in HTML and even worse it assumes the person is running Windows. But I am a anti-Windite (or something like that). Also I run ad blocker software and I see many blocked ad messages all over the page. I didn't dig into where they are coming from but I see you have a boat load of JavaScript also.

Now, iframes aren't the most standard of functions and I would suggest trying to get your HTML to pass the validator at w3c before I dig into it too deep:

http://validator.w3.org/

There is a lot of good information about standards here:

http://www.w3.org/

I don't have a Windows machine here at home so I can't really tell what it looks like in Windows. Maybe I'll check it over lunch tomorrow at work.

Again, I'm not trying to upset you or anything and like I said, I like to create the worst looking pages on the net but I believe I have pointed out some generally common web design issues. There are other people on here far more qualified to comment on it than I so maybe they can chime in...
Last edited by Void Main on Sat Oct 18, 2003 2:10 pm, edited 1 time in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Fri Oct 17, 2003 11:19 pm

Good catch on the sharp symbol missing. I generally leave this out because "usually" it is not needed.

As far as your major gripe about the webpage (the resolution and .doc howto) that was a first edition design feature and is not applicable anymore. I just never eewmoved it. I have since recoded the page for better results in lower res and yes the howto would have been better in a html format but I origionally wanted something someone could download and save to their hard disk.

I do not get what you are saying about blocked ads? There are no popups in any of my html pages whatsoever. I absolutely despise them and would never force them on anyone else. Please explain if you are seeing something that are unsure of. If you are getting ads they are not from my page.

As far as iframes not being standard which was the only real problem with the page as I stated before, iframes are standard and should be parsed correctly by any browser. I should not have to bend my coding standards around a browser. it should be the other way around. iframes come in very handy when you want to fit alot of info into a certain size on a page.

I will not change my usage of iframes just because a browser cannot parse them correctly. I guess I will just have to wait until someone decides that they want to design a decent tool to compete with winblows and IE.

I welcome yours or anyone elses criticism on my html coding standards. I do not take offence to a learning experience ever. But from what you said is basically you don't like flash and you use a lower resolution (or most do) and to not use iframes because it is an issue with netscape and mozilla.

**********
Edited:

Oh and I forgot to say that you are more than free to keep or modify that script any way you see fit. it is a decent tool if you are in networking and ever need to convert between IP and ATM (bits per second to cells per second and vise versa).

The link did not work because my script was called convert.cgi and not converter.cgi. Stupid mistake by me.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby ZiaTioN » Fri Oct 17, 2003 11:39 pm

Ok I created the last symbolic link to the /usr/local/netscape/plugins directory and now when I enter "about:plugins" in my netscape browser I see the java plugins there but when I load a page with java appletes in it my browser crashes.

Any info on why this happens?
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Sat Oct 18, 2003 6:34 am

ZiaTioN wrote:I do not get what you are saying about blocked ads? There are no popups in any of my html pages whatsoever. I absolutely despise them and would never force them on anyone else. Please explain if you are seeing something that are unsure of. If you are getting ads they are not from my page.


I just pointed to your page without my proxy and I see it was your main flash that was being blocked (and some other things). I looked in my proxy filter and I found a rule to block flash files that have "banner" in their name. It must be very common for advertisers. At any rate I now bypassed it to see your page.

As far as iframes not being standard which was the only real problem with the page as I stated before, iframes are standard and should be parsed correctly by any browser. I should not have to bend my coding standards around a browser. it should be the other way around. iframes come in very handy when you want to fit alot of info into a certain size on a page.


iframes are supported by most of the current versions of browsers and you are right, it would be nice if every browser rendered everything exactly the same but often times they don't. If you want your site to display the same for everyone you have to be aware of some of the differences and code accordingly. You can take a few different approaches, 1) keep to the basics and common standards (HTML 3.x 4.x/XHTML 1.x etc) which are well supported across all browsers., 2) do a lot of work to make your site display the same in most browsers, 3) make your site look good in one browser and to hell with anyone else (this happens too often).

I will not change my usage of iframes just because a browser cannot parse them correctly. I guess I will just have to wait until someone decides that they want to design a decent tool to compete with winblows and IE.


Sounds like you are on the road to the 3rd approach above. It really gets me when people say things like the above. Often times (I would say the majority of the time) when something doesn't display the same between IE and other browsers it is because IE displays it incorrectly and the other browsers are following the standards that were written. Microsoft isn't really up on following standards, they do their own thing and to hell with everyone else.

I welcome yours or anyone elses criticism on my html coding standards. I do not take offence to a learning experience ever. But from what you said is basically you don't like flash and you use a lower resolution (or most do) and to not use iframes because it is an issue with netscape and mozilla.


I didn't say I didn't use iframes. I use iframes where they are useful (mostly at work) and mine look the same in Mozilla and in IE. I use Mmozilla exclusively at home and at work I use Mozilla primarily (on Solaris actually). At work I also use two different versions of Netscape and a small amount of time in IE on Win2K. Why so many browsers? Because I used several web based products and the people who designed them suck (networking software). One requires a certain version of Java an Netscape 4.75 (although I can get it to work in Mozilla, not IE though). I won't mention the name of the crappy company where that software comes from but their initials are "Cisco". Then there is an app that will only work in IE and nothing else (Nazis!). So I make it a point when I develop that I develop for a common denominator so people can actually use what I write (heaven forbid!). The funny part about it is it is much easier to program for the lowest common denominator and is usually more functional with less trouble.

For sites I want as many people as possible to view I try not to use any frames (including iframes), no flash, limited javascript (if any) minimal graphics and if I do I make sure they are efficient. You would be surprised how nice you can get a site to look using minimalist standards and it is "content" (information) and ease of accessing that content that most people care about. Now for a site that will be viewed by a limited number of people all using a known browser type (corporate intranet for example) then using standards isn't quite as important (unless I work in that corporation and I jump in your case about it). Please don't use my void main site as an example of anything I am referring to because I really have intentionally made my site look ugly as my disclaimer states.

Again, I haven't looked closely at your page yet but I would be much more willing to look at it faster if you can get it to pass the w3 validator to make sure your sytnax and tag usage is at least correct and is following the standards and free of typos. One area I do know that browsers behave differently is when you do not include a close tag on an element (or make a typo on it). For instance if you need a "</TD>" and accidentally did a "</TS>" or "</TABL>" where a "</TABLE>" is needed. I'm not saying your page has a problem like this, just that it is a common way of introducing a difference in how the page is rendered. I'm still not sure what your main issue is because I can't see what it looks like in IE (maybe you could take a screen shot of both). It might be that you want the frame at the bottom of the page centered rather than left justified? I also notice you use a "<BR></BR>" and there is no such tag as "</BR>". It is entirely possible that every browser would handle that invalid tag differently but I am not sure. So again, if you could get it to pass the validator I would take a much closer look at it.

HTML isn't a lot different than any other programming language except browsers still run your program whether you have typos or invalid statements in them where actual programs will just crash and you "know" you have a problem. Even if everything is according to standard there can be slight differences (although usually nothing major as long as you know about them).
Last edited by Void Main on Sat Oct 18, 2003 10:44 am, edited 7 times in total.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Void Main » Sat Oct 18, 2003 6:35 am

ZiaTioN wrote:Ok I created the last symbolic link to the /usr/local/netscape/plugins directory and now when I enter "about:plugins" in my netscape browser I see the java plugins there but when I load a page with java appletes in it my browser crashes.

Any info on why this happens?


Do you have a link?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Sat Oct 18, 2003 1:11 pm

Ok both netscape and mozilla do render the iframes they just ignore the "align" tag.

When you are using your iframes at work try to align center like mine and see if mozilla ignores it.

Here are the two screen captures from IE and Netscape:

Internt Explorer

Netscape

As you can see IE renders the alignment correctly and Netscape (Mozilla) does not. I did remove the bogus </br> tag and really do not remember puting that in there. It had not effect.

The link that my browser hangs or crashes on is here .

Let me know if your browser renders this applette correctly and does not hang or crash.


Oh and when I use the validator I get an error on all pages that it cannot even start to validate. Here is the text from the site.

I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are:

* The HTTP Content-Type field.
* The XML Declaration.
* The HTML "META" element.

And I even tried to autodetect it using the algorithm defined in Appendix F of the XML 1.0 Recommendation.

Since none of these sources yielded any usable information, I will not be able to validate this document. Sorry. Please make sure you specify the character encoding in use.

IANA maintains the list of official names for character sets.


It appears that this validator wants all that nonsense that a crappy html editor would put in or else it will do nothing. I write all my html by hand in vi so none of that crap gets put in. I know many many sites that do this the same way and have no problems so I do not think tyhat such things like "Content Type" or "Doctype" will make a difference.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Sat Oct 18, 2003 1:54 pm

ZiaTioN wrote:It appears that this validator wants all that nonsense that a crappy html editor would put in or else it will do nothing. I write all my html by hand in vi so none of that crap gets put in. I know many many sites that do this the same way and have no problems so I do not think tyhat such things like "Content Type" or "Doctype" will make a difference.


Adding one line to the top of your HTML page to identify what coding standard you are writing to isn't a huge task if you ask me. I also write all my HTML/Perl/PHP/Java/C/etc using VIM and don't find it difficult at all to add that line. Besides, it's only required by the validator if you want it to check your page automatically, you can select which HTML/XHTML standard you are following on that page.

As far as that Java link, my browser (Mozilla 1.2.1, stock Red Hat 9) had no problem with it. I am using Java Plug-in 1.4.2 via libjavaplugin_oji.so.

As far as your page, try adding the "align=center" to your "TD" cell tag that the iframe is in, sort of like this:

http://voidmain.is-a-geek.net/cy/lyrics.html

Mind you I didn't download all the supporting graphics so the page won't look like yours other than the iframe should be centered.

On a side note, I believe the reason Mozilla and Netscape do not center with an "align=center" in the iframe tag is because they don't recognize that value. I searched Mozilla and found several references to the syntax of the iframe tag and the only align parameters that they mention are "bottom", "left", "middle", "right", and "top". You can see an example of this on this page (do a find for "iframe" on that page):

http://www.mozilla.org/quality/browser/standards/html/

I suspect that Mozilla is following the standards and IE added "center" because "they thought it should have a center". This causes many headaches like you are having now because you believe that because you can do it in IE they "all" should do it. Bottom line is they went above and beyond the standard, which means "non-standard". Of course IE isn't the only browser where this happens, there is plenty of blame to go around (see ilayer). That's why I am a firm believer in standards validator and learning the actual standards and try not to use browser specific code. It's not any harder really. There are very few examples when browsers display things differently if following the standards (it still does happen occassionally though).
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Sat Oct 18, 2003 3:38 pm

Ok, I have the same plugin you do just runninjg Netscape on RH8 instead of Mozilla on RH9.

I have removed the old install of the plugin a few times and have re-installed it a few times but still no difference. It does not work.

I have created a script log of my install procedure, maybe you cans ee where I go wrong but from my experience this is the correct and full method of installing this plugin.

Code: Select all
Script started on Sat Oct 18 14:20:29 2003
[root@ToughGuy misc]# rpm -ivh j2re-1_4_2_01-linux-i586.rpm
Preparing...                ########################################### [100%]
        package j2re-1.4.2_01-fcs is already installed
[root@ToughGuy misc]# rpm -ivh --force j2re-1_4_2_01-linux-i586.rpm
Preparing...                ########################################### [100%]
   1:j2re                   ########################################### [100%]
[root@ToughGuy misc]# cd /usr/bin/
[root@ToughGuy bin]# rm java javac jar
rm: cannot lstat `java': No such file or directory
rm: cannot lstat `javac': No such file or directory
rm: cannot lstat `jar': No such file or directory
[root@ToughGuy bin]# ln -s /usr/java/j2re1.4.2_01/bin/java java
[root@ToughGuy bin]# ls -al java
lrwxrwxrwx    1 root     root           31 Oct 18 14:22 java -> /usr/java/j2re1.4.2_01/bin/java
[root@ToughGuy bin]# cd /usr/local/netscape/plugins/
[root@ToughGuy plugins]# ls -al
total 1472
drwxr-xr-x    2 root     root         4096 Oct 18 14:17 .
drwxr-xr-x   10 root     root         4096 Oct 14 22:05 ..
-rw-r--r--    1 root     root          856 Jun 24 09:04 flashplayer.xpt
-rw-r--r--    1 root     root      1470464 Jun 24 09:05 libflashplayer.so
-rwxr-xr-x    1 root     root        20448 Jun 24 09:04 libnullplugin.so
[root@ToughGuy plugins]# ln -s /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so
[root@ToughGuy plugins]# ls -al
total 1472
drwxr-xr-x    2 root     root         4096 Oct 18 14:23 .
drwxr-xr-x   10 root     root         4096 Oct 14 22:05 ..
-rw-r--r--    1 root     root          856 Jun 24 09:04 flashplayer.xpt
-rw-r--r--    1 root     root      1470464 Jun 24 09:05 libflashplayer.so
lrwxrwxrwx    1 root     root           67 Oct 18 14:23 libjavaplugin_oji.so -> /usr/java/j2re1.4.2_01/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
-rwxr-xr-x    1 root     root        20448 Jun 24 09:04 libnullplugin.so
[root@ToughGuy plugins]# exit
exit

Script done on Sat Oct 18 14:23:35 2003


As you can see I had to force install it because after I removed both symlinks and the jre directory in /usr/java it still thought that the plugin existed.

Anyway, now all I get is a grey box where the applete is suppose to be and I do not get the error message telling me I need the plugin. It appears it sees the plugin but just does not render the applette.

I have also taken a screen shot of the "about:plugins" so you can see that the plugin is there.

Screenshot!
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Sat Oct 18, 2003 3:52 pm

I don't have permission to view the screen shot. I am linked to the */i386/ns610/libjavaplugin_oji.so rather than the */i386/ns610-gcc32/libjavaplugin_oji.so. Don't know if that makes a difference (I do have the gcc32 one but am not using it). I'll try it and see if it crashes. Also mine is from the sdk version of java 1.4.2:

Code: Select all
$ ls -l /usr/lib/mozilla/plugins
total 4
lrwxrwxrwx    1 root     root           67 Aug 11 21:23 libjavaplugin_oji.so ->
/opt/j2sdk_nb/j2sdk1.4.2/jre/plugin/i386/ns610/libjavaplugin_oji.so


Also, did using the "center" on the TD fix the other problem?

EDIT: I just linked to the plugin in the ns610-gcc32 directory and it wouldn't even show up on the "About Plugins" so I guess I can't tell if that's what caused your crash. I would definitely try the one in the ns610 direcotory though and see if that fixes your problem.

EDIT2: Looks like the TD align=center fixed it huh?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Sat Oct 18, 2003 5:26 pm

Yes the align in the table data tag field did fix it for Netscape and Mozilla. Thankx for the input. For html they teach to do it as I had it previously (inside the iframe body).

Now I have been running my pages through the validator using the "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">" line at thye top but I get a bunch of errors saying that a lot of the attributes I have in my table declerarions are not valid.

Attributes such as "width" and height" which I know are valid table attributes. Could it be I am using the wrong DocType?

Latslt I will try symlinking to the other plugin right now and report the results afterwards.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Next

Return to Fedora/Red Hat

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron