473,799 Members | 3,052 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Inconsistent results across browsers

My web page displays just fine under IE7, but under IE6 about 90% of
it is just plain missing. I get the top of the page, and the bottom
of the page... but not the middle. I have not tested with any other
browsers.

The page is at www.greengoldcapital.com

I use considerable amounts of CSS, and a lot of other things including
javascript, SSI, PHP, mySQL, and a partridge in a pear tree. I have a
third party application integrated in, as well as "tips & tricks" I'm
using from others, some of which are way over my head; especially the
menu.

I'm at a loss as to where to even start looking for the problem. I
was thinking maybe it was a css issue, yet I use css on the part that
shows up too. As far as I can tell, there's nothing especially
different about what shows up versus what doesn't show up... so I'm
stumped at this point.

Thank you for any good ideas.

Jun 1 '07
17 2313
On 1 Jun, 20:29, Dudely <ab3...@gmail.c omwrote:
My web page displays just fine under IE7, but under IE6 about 90% of
it is just plain missing.

Don't EVER use this:
if ((navigator.app Version.indexOf ("MSIE") 0)
&& (parseInt(navig ator.appVersion ) <= 6)) {

Don't EVER use this:
<!--[if lt IE 7]>

You might use this, but I strongly advise against it.
<!--[if gt IE 7]>

If you must use IE conditionals, then the only safe form to use is
this one:
<!--[if IE]>

The reasoning is to do with the "fall back" behaviour in browsers that
correctly ignore this M$oft-specific extension.
Some general rules on web design (in order)

* Write standards-based code that passes HTML and CSS validation.

* Adjust the design until you're happy that it works in a standards-
compliant browser. I suggest Firefox and the Marc Geuery HTML
validator extension.

* Keep checking that it's _still_ valid!

* See how badly the broken IE mangles it. Fix, work-around or avoid
particular pieces of the standard that IE can't cope with.

* Use the <!--[if IE]form to fix anything you can't possible fix by
other means.

* Don't use an IE-only feature unless you absolutely _must_, and
you're already experienced enough to do valid standards-based design
and coding for other standards-based browsers.

* Never use an "If not IE" test. They fail outside IE, so always use
the "If IE" form instead.

* Never test for specific IE versions. This gives non-robust code that
costs a lot in maintenance when IE changes.

* NEVER break the validation, the standards-based code, or the
behaviour in other browsers just to try and keep IE happy.


Jun 4 '07 #11
Scripsit Andy Dingley:
Don't EVER use this:
if ((navigator.app Version.indexOf ("MSIE") 0)
&& (parseInt(navig ator.appVersion ) <= 6)) {
If you do browser sniffing regarding IE, that trick works roughly as well as
the alternatives. I don't think it's particular useful to nitpick on it.
Don't EVER use this:
<!--[if lt IE 7]>
You sound very dogmatic, but in a pointless way. You can declare all browser
sniffing as wrong, and that would be a defendable though a bit too
idealistic viewpoint. But if you approve browser sniffing at all, surely you
need to recognize the fundamental difference between IE 7 and previous
versions of IE.
If you must use IE conditionals, then the only safe form to use is
this one:
<!--[if IE]>
Sorry, but that's not only ridiculous - it will also confuse newbies if you
take you seriously.
The reasoning is to do with the "fall back" behaviour in browsers that
correctly ignore this M$oft-specific extension.
There's no "fall back". They simply just read the style sheet by the book
and ignore the part that they are expected to ignore, no matter whether you
have [if IE] or [if lt IE 7].
* Never use an "If not IE" test.
What strawman is that?
* Never test for specific IE versions. This gives non-robust code that
costs a lot in maintenance when IE changes.
You're completely wrong. If your page works fine on browsers other than IE
_and_ on IE 7, it would be foolish to tell IE 7 to use the tricks that you
have written to make IE 6 behave.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 4 '07 #12
rf
"Andy Dingley" <di*****@codesm iths.comwrote in message
news:11******** *************@q 69g2000hsb.goog legroups.com...
* Never test for specific IE versions. This gives non-robust code that
costs a lot in maintenance when IE changes.
Disagree.

<!--[if IE 6]allows me to inject a bit of javascript skulduggery that
makes {position: fixed} sort of work for those still using this specific
browser. (javascript *must* be enabled to use the page anyway). Same with
the javascript solution to CSS dropdown menus in IE6 although I also employ
a non-javascript degredation.

No other browser will see this javascript. I have nothing to 'maintain' in
the future, other than to someday remove the code when IE6 dies.

--
Richard.
Jun 4 '07 #13
On 4 Jun, 12:14, "Jukka K. Korpela" <jkorp...@cs.tu t.fiwrote:
You sound very dogmatic, but in a pointless way.
Do _you_ really expect a reply to that?

Jun 4 '07 #14
On 4 Jun, 12:35, "rf" <r...@invalid.c omwrote:
<!--[if IE 6]allows me to inject a bit of javascript skulduggery that
makes {position: fixed} sort of work for those still using this specific
browser.
This sort of "If old version" test is certainly more stable than
something using "If new version". That's the real problem, and the
one that needs to be guarded against carefully.

If there _is_ an old version though, why go to this extra trouble to
support it? It's already an "old" version that's withering away, or
else it's not yet safe enough to treat it this way. If so, why embed
what's becoming obsolete cruft into your shiny new pages?

It's not 1999 any more, browser compatibility isn't still so bad that
you're forced into supporting browser vagaries because it's the only
way to achieve a useful page.

Jun 4 '07 #15
Scripsit Andy Dingley:
On 4 Jun, 12:14, "Jukka K. Korpela" <jkorp...@cs.tu t.fiwrote:
>You sound very dogmatic, but in a pointless way.

Do _you_ really expect a reply to that?
Of course not. It was not a question.

Thank you for confirming my observations by this posting of yours, where you
did not make any comment on the substance and just wasted bandwidth and
everyone's time with a foolish question. You confirmed my observations,
since you are known to be an intelligent person, who would surely have
presented rational counterargument s if he had one.

We conclude that <!--[if lt IE 7]... <![endif]and similar pseudocomments
are a good way of dealing with problems in IE, _if_ an authors decides to
use browser sniffing.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jun 4 '07 #16
Andy Dingley <di*****@codesm iths.comwrites:
* Never use an "If not IE" test. They fail outside IE
I never use IE conditionals myself, but I don't understand this advice.
Isn't the whole point of an "if not IE" test that it will fail outside IE?
IE will parse the conditional and find it negative. Other browsers will
ignore the conditional, so they will render its contents, same as if
they'd parsed it as positive.

sherm--

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Jun 4 '07 #17
On Mon, 04 Jun 2007 15:36:36 -0400, Sherm Pendley <sp******@dot-app.org>
wrote:
>Andy Dingley <di*****@codesm iths.comwrites:
>* Never use an "If not IE" test. They fail outside IE

I never use IE conditionals myself, but I don't understand this advice.
Isn't the whole point of an "if not IE" test that it will fail outside IE?
No, that's the "If IE" form. Non-IE browsers then see them as a coment.
Your valid argument is the justification for my practice.
Jun 4 '07 #18

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
8729
by: Larry Woods | last post by:
Look at this code: Dim i As Integer = 0 Dim j As Integer = 5 If (j / i = 7) Or i = 0 Then MessageBox.Show("In If") Else MessageBox.Show("In Else") End If
3
1941
by: John C Kirk | last post by:
I've come across an odd situation, where doing a floating point division produces different results for the same numbers. Basically, there are 4 ways to run this application: A) Debug build, inside the IDE B) Debug build, outside the IDE (e.g. launched from Explorer) C) Release build, inside the IDE D) Release build, outside the IDE Using methods A-C produces one result, and using method D produces a
6
2490
by: Doug Mazzacua | last post by:
I noticed that that <ul> lists display differently with <br> between <li>s in IE and Mozilla. Does anyone know of a reference that catalogs all of the known types of differences in display between browsers? Or do you all just do multiple tests of all your pages? Thanks in advance for any advice. _________________________________________
10
1492
by: Robert Baer | last post by:
<SWM.HTM listing; does not work; positioning wrong (below main GIF)> <!-- IE adds a horizontal 4-icon strip near the upper left corner when that area is visited (WTF?) --> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Stripper wells and production</title> </head> <SCRIPT LANGUAGE="JavaScript"> <!--
1
2345
by: Peter Knörrich | last post by:
Hello, I've found another inconsistency, and looking through the list archives I can find mentions of funky stuff like print float('inf') giving Infanity
20
2623
by: Francine.Neary | last post by:
I am learning C, having fun with strings & pointers at the moment! The following program is my solution to an exercise to take an input, strip the first word, and output the rest. It works fine when you give it 2 or more words, but when there's only 1 word the results vary depending on whether it's on Windows or Linux: under MSVC it displays no output (as it should); under gcc/Linux it instead gives "Segmentation fault". Any ideas...
1
4279
by: catudalg | last post by:
Configuration: Windows 2000 sp3 MS Access 2000 (9.0.4402 SR-1) Visual Foxpro 9.0 detached tables MS VFP Driver 6.01.6830.01 06/19/2003 For example, a simple query like: select * from ddwg1 union all select * from ddwg2
6
1506
by: Gary Wardell | last post by:
Hi, I wanted to check if this was correct be behavior before reporting it as a bug in FireFox. Given this function: function test() { var re;
1
3286
by: rnhuch | last post by:
My platform is SQL Server 2005. One of the tables of my db has 28589928 rows and one of the fields is real. When I backup and restore this database to another server (using the SQL Server internal tool) and do a SELECT SUM(<<field name>>) from <<table name>>, the results from these two servers are slightly different. I don't understand the reason because these databases are static and they should be exactly the same. Then when I tried...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10225
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.