TinyPortal

Development => Support => Topic started by: sp0di on November 01, 2005, 04:03:45 PM

Title: Javascript problem under Mozilla
Post by: sp0di on November 01, 2005, 04:03:45 PM
Okay - not really sure if this is a "bug" or not, but here it goes..

Site - www.globalgamer.net

What it is the "Server Status" block, it shows proper under IE, however Mozilla it's squished. 

The code for the block is as follow's
<TABLE align="center" cellpadding="2">
<TR><TD valign="top">

<center><SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=111675">
</SCRIPT></center>
</TD></TR></TABLE>


Kinda weird, thinking is a Mozilla based issue, but it shows up fine from a static web page, not within the TP.

Any thoughts?
Title: Re: Javascript problem under Mozilla
Post by: bloc on November 01, 2005, 05:44:48 PM
try a width="100%" in the table there.
Title: Re: Javascript problem under Mozilla
Post by: sp0di on November 01, 2005, 06:17:20 PM
nope - made it a little worst...

I wounder if I need to specify a length ?
Title: Re: Javascript problem under Mozilla
Post by: bloc on November 01, 2005, 07:50:33 PM
Might be. I suspect its something in the javascript routine that does this.
Title: Re: Javascript problem under Mozilla
Post by: bloodlust on November 03, 2005, 01:56:51 AM
hmmm.....try putting your serverstaus code in a seperate static html file.



<html>
<body>
<TABLE align="center" cellpadding="2">
<TR><TD valign="top">

<center><SCRIPT LANGUAGE="JavaScript"
SRC="http://share1.serverspy.net/cgi-bin/monitor.js?mid=111675">
</SCRIPT></center>
</TD></TR></TABLE>
</body>
</html>

Save as serverstatus.html or whatever, and upload it to your webserver.


And use an iframe to display the content in an html block. 


<iframe src="serverstatus.html" name="serverstatus" width="100%" height="200" frameborder="0">Your browser doesn't support frames.</iframe>

Put this in your HTML block.