cloudy cloudy

Author Topic: Good tip with problem with small size with Fire Fox browser  (Read 32946 times)

0 Members and 1 Guest are viewing this topic.

Offline Weather Display

  • Posts: 82,362
  • Davis VP2
  • New Zealand
    • Weather Display
Good tip with problem with small size with Fire Fox browser
« on: February 25, 2006, 07:43:40 PM »
I had this same problem.
With FF, WDL screen was very small if I set WDL using "%" with width and height.

Then I remove two lines from my code;

"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"

they are the first 2 lines with the "Carter Lake templates"
After this, all is fine and now I can use "%" and WDL screen is normal size also with FireFox.
« Last Edit: July 24, 2006, 10:58:33 PM by windy »

Offline gabba

  • Posts: 166
  • Paris (at the) Hilton
  • Lower Hutt, New Zealand
    • Maungaraki, Lower Hutt, NZ -  Weather
Re: Good tip with problem with small size with Fire Fox browser
« Reply #1 on: March 28, 2006, 08:07:43 AM »
Sorry if this has been asked before but does anyone have an answer as to why removing the document type definition makes a difference?


....or is this just the way the gods have deemed it, and therefore it should be accepted :wink:

Andrew

Offline JaxWeather

  • Bob
  • Global Moderator
  • Posts: 12,017
  • VP 2 w/FARS - WML Station: WD00007
  • Jacksonville, Fl. USA
    • JaxWeather.net
Re: Good tip with problem with small size with Fire Fox browser
« Reply #2 on: March 28, 2006, 06:20:24 PM »
Maybe it isn't that line itself...

It possibly could be what that line requires which is all XHTML is case-specific. In XHTML 1.0, all elements and attribute names must be written in lower case:

While in HTML mixed cASe is supported.
http://www-128.ibm.com/developerworks/library/w-xhtml.html

Someone would need to do some checking and see if ensuring all is in lower case if that line still causes issues.

-Bob

Offline bwawsc

  • Bill Walton
  • Posts: 450
  • HP Pavillion a6400f, 32 bit Pentium 2.4 GHz, 3GB
  • Boulder Creek, CA USA
    • Boulder Creek, CA Weather
Re: Good tip with problem with small size with Fire Fox browser
« Reply #3 on: April 18, 2006, 04:42:42 AM »
Here's a page that works:

Quote
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-US">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=ISO-8859-1" />
<meta name="keywords" content="MesoMap Live, Weather Display, Weather Display Live, Weather Station, Weather Software" />
<title>Weather Display Live</title>
<script type="text/javascript" src="../weather/flashobject.js"></script>
<style type="text/css">

   /* hide from ie on mac \*/
   html {
      height: 100%;
      overflow: hidden;
   }
   
   #flashcontent {
      height: 100%;
   }
   /* end hide */

   body {
      height: 100%;
      margin: 0;
      padding: 0;
      background-color: #ffffcc;
   }
</style>
</head>
<body bgcolor="FFFFCC">
<!-- URLs used in the movie-->
<!-- http://www.weather-display.com-->
<!-- text used in the movie-->
<!-- WeatherDisplayLive for Weather Display, the Number One in Weather Station Software-->
<div id="flashcontent">
<strong>You need to install a flash player, or upgrade your flash player.</strong>
</div>
<script type="text/javascript">
  var fo = new FlashObject("http://www.rawbits.com/weather/wdlv4_11.swf?http://www.rawbits.com/weather/wdlconfig.xml", "wdlv4_11.swf", "100%", "100%", "7", "FFFFCC");
  fo.write("flashcontent");
  fo.addVariable("quality", "high");
  fo.addVariable("wmode", "transparent");
</script></body>
</html>
It uses flashobj.js from Geoff Stearns - http://blog.deconcept.com/flashobject/
« Last Edit: April 18, 2006, 04:58:28 AM by bwawsc »
--
Bill

Offline Phoniclynx

  • Posts: 457
  • Adelaide, Australia
    • Tucker's Weather Station
Re: Good tip with problem with small size with Fire Fox browser
« Reply #4 on: September 21, 2006, 03:32:23 AM »
I don't know if this helps... but that line in HTML basically means go to the W3C website and grab the XHTML Template and tell me how to display the information here in the coding. So my presumption is that FireFox being Firefox is rather strict in to ahdearing to the correct formats as described within the WhitePapers that W3C put out.. which would be why it would be producing this, cuz its the correct way of doing it.. unlike IE who actualy do the wrong thing :P
Tucker
Adelaide Australia.
ESXi 5.1 with 6TB HDD and 32GB RAM, Running XP
AAG 1-Wire Network, Baro, Humidity Sensor, V3 Weather Station, Rain Gauge, Solar Sensor, HUB
Tucker's Weather Station

Offline TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Posts: 5,939
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Good tip with problem with small size with Fire Fox browser
« Reply #5 on: September 21, 2006, 04:40:22 PM »
I had this same problem.
With FF, WDL screen was very small if I set WDL using "%" with width and height.

Then I remove two lines from my code;

"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"

they are the first 2 lines with the "Carter Lake templates"
After this, all is fine and now I can use "%" and WDL screen is normal size also with FireFox.

An alternative would be to use a Document type that allows what you are attempting to do.

FF is only doing what it is told to do and that is adhear to (in this case) XHTML 1.0 Transistional valid code.

Removing it, gives no direction and doesn't really solve the issue if you are attempting to really be XHTML 1.0 compliant.

There are many valid doc types, each supporting different html protocols...

http://www.w3.org/QA/2002/04/valid-dtd-list.html

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline 1006

  • Posts: 115
  • MALTA
    • http://www.sananton.edu.mt/weatherstation
Re: Good tip with problem with small size with Fire Fox browser
« Reply #6 on: November 18, 2006, 05:17:44 PM »
Guys,

I tried finding the part to cut off so that my WDL will work properly in firefox, but i cant seem to find it.. some help pls?

Offline TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Posts: 5,939
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Good tip with problem with small size with Fire Fox browser
« Reply #7 on: November 18, 2006, 05:26:20 PM »
You don't have it on your page, so there is nothing to cut off.


All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline 1006

  • Posts: 115
  • MALTA
    • http://www.sananton.edu.mt/weatherstation
Re: Good tip with problem with small size with Fire Fox browser
« Reply #8 on: November 18, 2006, 05:28:39 PM »
But i still have that problem, on firefox its coming really small

try it on firefox:

http://www.maltaweather.net/sananton

Offline broadstairs

  • Stuart
  • Posts: 6,937
  • Broadstairs, Kent, UK
    • Broadstairs
Re: Good tip with problem with small size with Fire Fox browser
« Reply #9 on: November 18, 2006, 05:30:34 PM »
Guys,

I tried finding the part to cut off so that my WDL will work properly in firefox, but i cant seem to find it.. some help pls?

Try removing the ALIGN="" on the object statement, I dont have that on mine and it works in FF OK.

Stuart

Offline 1006

  • Posts: 115
  • MALTA
    • http://www.sananton.edu.mt/weatherstation
Re: Good tip with problem with small size with Fire Fox browser
« Reply #10 on: November 18, 2006, 05:32:37 PM »
still same problem

Offline TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Posts: 5,939
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Good tip with problem with small size with Fire Fox browser
« Reply #11 on: November 18, 2006, 05:32:56 PM »
Guys,

I tried finding the part to cut off so that my WDL will work properly in firefox, but i cant seem to find it.. some help pls?

You have a syntax error on the embed line

Look for    wmode="transparent

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline 1006

  • Posts: 115
  • MALTA
    • http://www.sananton.edu.mt/weatherstation
Re: Good tip with problem with small size with Fire Fox browser
« Reply #12 on: November 18, 2006, 05:39:09 PM »
what should i do? the line looks fine..

Offline andro700

  • Chuck
  • Posts: 3,346
  • Mohall North Dakota
    • Chuck's Weather Page
Re: Good tip with problem with small size with Fire Fox browser
« Reply #13 on: November 18, 2006, 05:41:24 PM »
It needs to be wmode="transparent"

My bad Tumas.

Chuck

Offline 1006

  • Posts: 115
  • MALTA
    • http://www.sananton.edu.mt/weatherstation
Re: Good tip with problem with small size with Fire Fox browser
« Reply #14 on: November 18, 2006, 05:44:34 PM »
Wicked!

Worked Thanks guys!