Cross Browser issues

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
Pavilion
Forum Contributor
Posts: 301
Joined: Thu Feb 23, 2012 6:51 am

Cross Browser issues

Post by Pavilion »

Hello everyone...

I'm not sure where to put this post.. . so I'll try it here.

I am learning on a test application. It works fine in IE and Firefox. I've had to learn to do a lot of IE specific stuff, but it is functioning in IE.

I just downloaded Netscape today and tested the application on Netscape (figuring it could be no worse than IE). I was wrong.

For starters Netscape stops execution of all html script after a comment. For instance:

Code: Select all

<div class="outer"><!---Outer starts here---->
The above is just an example. But... because this is an application I am learning on ... I've used html comments to designate different sections of my page, etc... Once I created a new page, copied my script over and took out EVERY html comment, the page showed (more, or less) the way it should on netscape, and I was able to use 90% of the functions on the page - there are a lot of buttons using jQuery - most of them work. But with the html comment tags, the buttons don't even show up, let alone using them.
  1. Does anyone know why Netscape doesn't execute after an html comment?
  2. Is there a work around, I am still learning and using comments helps me track what I am doing?
Thanks in advance - Pavilion
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Cross Browser issues

Post by Celauran »

I don't think supporting Netscape is reasonable anymore. Nobody uses it. When was the last version even released?
Pavilion
Forum Contributor
Posts: 301
Joined: Thu Feb 23, 2012 6:51 am

Re: Cross Browser issues

Post by Pavilion »

Hello Celauran:
I don't think supporting Netscape is reasonable anymore. Nobody uses it. When was the last version even released?
After checking Wikipedia, I'll take your word for it. .... But.. visitor statistics for my business website say differently.
64.26% of visits show unknown browsers
23.57% of visits show netscape 7
10.65% of visits show netscape 4
1.14% of visits show IE
0.38% of visits show firefox
Go figure... :?

Wonder what that says about my business website :?: :?: :?:

:D
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Cross Browser issues

Post by Celauran »

64% unknown tells me something is amiss. I'd check whatever is generating these stats.
Pavilion
Forum Contributor
Posts: 301
Joined: Thu Feb 23, 2012 6:51 am

Re: Cross Browser issues

Post by Pavilion »

Celauran wrote:64% unknown tells me something is amiss. I'd check whatever is generating these stats.
Well... because I'm learning php, etc... I'll be changing providers and building my own website soon enough. Which brings me to question that's been on my mind for some months now. What web hosting services are highly regarded by "those in the know"???

For learning purposes ... I'm using GoDaddy... but am NOT impressed with their high-pressure sales tactics. When I build a new site, or start selling my services to clients, I'd like to use a hosting service that has respect amongst developers.

Thanks Much - Pavilion
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Cross Browser issues

Post by califdon »

Although most current browsers probably let you get away with this:
<------- some comment ------->
that's poor practice. Try:
<-- -------- some comment ------ -->
It should then recognize the beginning and ending comment tags.

I agree with Celauran. Unless your visitors are from a remote country where people don't download current software, it's hard to believe that anyone still uses Netscape browsers. If you had to code for a browser that ancient, you would need to code for a dozen others, too, and probably many "normal" operations could not be made to work at all.
Pavilion
Forum Contributor
Posts: 301
Joined: Thu Feb 23, 2012 6:51 am

Re: Cross Browser issues

Post by Pavilion »

califdon wrote:Try:
<-- -------- some comment ------ -->
It should then recognize the beginning and ending comment tags.
Thank you... I was not aware of that syntax standard. I will search and replace my comment tags. However, the syntax I've been exposed to uses an exclamation mark... as follows:

Code: Select all

<!---Outer starts here---->
Is the exclamation mark out as well??????

__________________________________

Also ... I'd appreciate your imput on the question I asked in the last post. :D
What web hosting services are highly regarded by "those in the know"???

Thanks - Pavilion
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Cross Browser issues

Post by califdon »

Oops, that was my bad. The point is, there is an opening tag and a closing tag and they should be separated from the comment with at least one space.
<!-- xyzabc foo bar blah blah -->
You may find lots of examples where there is no space isolating the tags, but at least I have always felt that a tag should be separated with a space, and I think probably your Netscape troubles may be due to you not having them.

I don't consider myself "in the know" about web hosting services. I've had a dozen or so domains hosted at GoDaddy for around 10 years and I recommend them to anyone who asks. They have decent hosting plans, low prices, excellent and responsive tech support, and I've never had down-time problems. Their control panels are infuriating and they do promote their products pretty aggressively, but I'm willing to put up with those issues in return for the good results and low cost. But there are many other hosting services and I would never engage in an argument about "which is the best." In any case, your inquiries about hosting should be posted in our Web Hosting forum, not here in the PHP Code forum.
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: Cross Browser issues

Post by Live24x7 »

64.26% of visits show unknown browsers
23.57% of visits show netscape 7
10.65% of visits show netscape 4
1.14% of visits show IE
0.38% of visits show firefox
This is an highly unlikey stats -- I guess your stats tracker is reporting some versions of firefox as netscape.
Given that Mozilla And Netscape share a lot of their underlying code. Not sure though :roll:

This sounds like some stats from the 90s :D
Post Reply