Jump to content

Deleriad

Members
  • Posts

    5
  • Joined

  • Last visited

Deleriad's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Well I have discovered that for whatever reason, IE has always identified itself as Mozilla. IE7 identifies itself as mozilla version 4, the same as IE6. The w3schools detection program returns the following about IE7 CodeName=MozillaMinorVersion= Beta 2Name=Microsoft Internet ExplorerVersion=4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)...UA=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727) Somehow then I need to be able to test for MSIE 7.0 as part of the detection. Any ideas about how to deal with this?For the record, Firefox reads CodeName=MozillaMinorVersion=undefinedName=NetscapeVersion=5.0 (Windows; en-GB)UA=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5 Basically, the more I look at this the more horrible it looks. Opera, for example, identifies itself as Internet Explorer...
  2. I'm sure this is an old, old issue. Basically, I want to be able to load a style sheet appropriate to the browser. The particular issue is that IE7 and Firefox use the w3c box model while IE6 and below use their own model. As my pages make extensive use of absolutely positioned divs then this is very important.I'm trying to keep it simple and as far as I know, this code should work <script language="JavaScript" type="text/javascript"> <!-- browserVersion = parseInt(navigator.appVersion) if (navigator.appName == "Microsoft Internet Explorer" && browserVersion <= 6) { document.writeln("<link rel='stylesheet' type='text/css' href='css/EHE-IE6.css' />"); } else { document.writeln("<link rel='stylesheet' type='text/css' href='css/EHE.css' />"); } //--> </script> It works fine for Firefox but when I try IE7 it detects it as though it's IE6. I only know javascript well enough to copy and paste so it could be something really, really stunned that I am doing wrong.
  3. Well, I fudged it in the end. Set the iframe to scroll:no and then ensured that any files I loaded into it were set to a width and height (by setting a style that set the width and height of the body) that would fit inside the frame. That way the scrolling worked properly.
  4. Thanks for that. I do have just a simple text file and IE7 insists on a horizontal scroll bar as well. What it seems to be doing is adding in a vertical bar then thinking "box is not wide enough now so I'll add in a horizontal bar to make up the difference."I've put the example online at iframe in IE7 vs Firefox to show what I mean if that helps. Even the simplest text file still generates horizonal bars in IE7.BTW I tried the overflow idea but it didn't work just now. (Still seems to work in IE7 for graphics but the text does not seem to be registering as an overflow).Bruce
  5. My problem is with iframes and scrollbars. I've had a look around and see no answer.At it's simplest, I have an iframe (called databyte) in a page and links in other parts of that page that load files into the iframe. The iframe is set to a fixed size (300width, 200 height and has scrolling=auto set).Now when I load a simple text-only HTML page into the frame that doesn't fit then it *ought* to give me a vertical scroll bar and that does indeed happen in Firefox. In IE6/7 though it always puts in a horizontal scroll bar as well and that is really, really annoying.Is this just a problem with IE and is there a fix or is there something really dumb that I'm doing wrong? I can give a fully detailed example if needs be.Thanks for any helpBruce
×
×
  • Create New...