home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Web Page Troubles

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2549
Discussions: 200,996, Posts: 2,379,946, Members: 246,364
Old September 25th, 2003, 02:40 PM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: Aug 2002
Location: Meeshigan
Posts: 605
Question
Web Page Troubles

I'm a member of michigan-sportsman.com - it's about hunting and fishing in michigan. We have several articles on various topics, but I noticed something weird the other day.

A friend of mine wanted to see the article on ice fishing safety I wrote, so I went to the home page, clicked on FIshing Library, then on my article. I got the article, but it quit after the introduction. (There's only about an tenth of it displayed.) The webmaster (Steve) can view it in IE and sees the entire thing. I looked at the source and the whole article is there. The other articles on the site have the same problem.

Steve told me that he uses FrontPage for a web design tool. It doesn't surprise me at all that the hypertext that is generated doesn't display right in Mozilla. (MS has never been accused of playing nice with others or actually adhering to standards.) I was wondering if somebody who knows hypertext could look at the source of a couple of the articles and see if they can tell what's going wrong. I've tried Mozilla on windoze and on RedHat; doesn't make any difference.


Here is a link to the article I wrote.

http://www.michigan-sportsman.com/fi...afety_tips.htm

And here is the entire fishing library.

http://www.michigan-sportsman.com/fi...sh_library.htm
__________________
About 5% of the people in the world can't think.
Another 5% can think and do.
The remaining 90% can think, but don't.
Ruler2112 is offline   Reply With Quote
Old September 29th, 2003, 02:08 AM     #2 (permalink)
Member
 
firewolf's Avatar
 
Join Date: Aug 2003
Posts: 229
I took a look at the code, and i don't know if he writes it like that or somehow the code got twisted but right now the whole page is kinda screwy. It's not the way I would've done it, also there is unnecessary tags where it shouldn't be. maybe that's giving you the problems
firewolf is offline   Reply With Quote
Old September 29th, 2003, 03:23 AM     #3 (permalink)
Ultimate Member
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,353
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
OK, there are a couple things that need to be changed on your article's web page...

First of all, there is a login java script that is in the HEAD part of the page, and the way it's put in is not the best.

Original: (Line #11-24
PHP Code:
<script Language="JavaScript">
    function 
OpenJabberWindow() {
        
jabber_url jabber_url "http://www.michigan-sportsman.com/jabchat/login.cgi"//EDIT THIS!!
        
if (!document.images) {
            
msg "Your browser is not capable of logging in to Jabber Chat. ";
            
msg msg "You should use Netscape or Internet Explorer, version ";
            
msg msg "4.0 or newer. (Available at [url]www.browsers.com[/url]).";
            
window.alert(msg); return;
        }
        
lchatwin=window.open(jabber_url,"LCHATWINDOW",
        
"status=no,toolbar=no,location=no,menu=no,resizable=yes,width=620,height=400");
    }
  
</script>
</head> 
Better way: (Line #11-26)
PHP Code:
<script Language="JavaScript">
<!--
    function 
OpenJabberWindow() {
        
jabber_url jabber_url "http://www.michigan-sportsman.com/jabchat/login.cgi"//EDIT THIS!!
        
if (!document.images) {
            
msg "Your browser is not capable of logging in to Jabber Chat. ";
            
msg msg "You should use Netscape or Internet Explorer, version ";
            
msg msg "4.0 or newer. (Available at [url]www.browsers.com[/url]).";
            
window.alert(msg); return;
        }
        
lchatwin=window.open(jabber_url,"LCHATWINDOW",
        
"status=no,toolbar=no,location=no,menu=no,resizable=yes,width=620,height=400");
    }
//-->
  
</script>
</head> 

You'll notice I put some comment marks [<!--] and [//-->] before and after the JavaScript. This is so browsers that don't have that functionality, or browsers that don't have Java enabled won't choke on that code, instead they'll just finish rendering the page as normal. And there won't be any errors as such.


Second, the tables that hold the articles are set to a certain pixel height. That's a no-no!

Example: (Line #279-283)
PHP Code:
      <td valign="top" width="476" height="672">
        <
div align="left" style="width: 468; height: 679">
          <
table BGCOLOR="#FFFFFF" CELLPADDING="3" style="font-size: 8pt" cellspacing="0">
            <
tr>
              <
td ALIGN="CENTER" bgcolor="#CCCCCC" colspan="2"
Much Better: (Line #279-283)
PHP Code:
      <td valign="top" width="476" height="672">
        <
div align="left" style="width: 468">
          <
table BGCOLOR="#FFFFFF" CELLPADDING="3" style="font-size: 8pt" cellspacing="0">
            <
tr>
              <
td ALIGN="CENTER" bgcolor="#CCCCCC" colspan="2"
You'll notice that I took out the ; height: 679 part of line #280
PHP Code:
        <div align="left" style="width: 468; height: 679"
to leave it like this:
PHP Code:
        <div align="left" style="width: 468"
With those two simple changes, it now works on my Mozilla 1.4 browser, and it should work on all Mozilla versions now.

If you want to test it out, I put that page up on my server with only those two changes made to it, so click HERE and it will open the page. (Some of the pictures don't work, don't worry though, that's just because they're linked locally and since I don't have those pictures, they don't load. Funny ain't it?!? I just put the page up there to test/show you how those changes effected the page.)

Hope this helps...

David

Last edited by davidamarkley : September 29th, 2003 at 03:26 AM.
davidamarkley is offline   Reply With Quote
Old September 29th, 2003, 05:09 PM     #4 (permalink)
Senior Member
 
Join Date: Aug 2002
Location: Meeshigan
Posts: 605
Looks like those changes work perfectly David. I've sent the Steve (webmaster) a link to this thread so he can take a look at it.

Thanks guys!
Ruler2112 is offline   Reply With Quote
Old September 30th, 2003, 01:34 AM     #5 (permalink)
Ultimate Member
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,353
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
Great to hear that...

Best of luck!

David
davidamarkley is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3092)
Foxconn Blackops x48 MoBo (5)
Charges against non-tippers dropped.. (22)
Health Care Rationing (16)
Nvidia GTX 260 problem (14)
Delete an OS (17)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
windows 7 problem (7)
Recent Discussions
add ram to existing (1)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)


All times are GMT -4. The time now is 11:31 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28