Web Analytics Made Easy -
StatCounter External JS file works in IE but not NS7.1 - CodingForum

Announcement

Collapse
No announcement yet.

External JS file works in IE but not NS7.1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • External JS file works in IE but not NS7.1

    I surfed this afternoon, and eventually found out how to make my (originally internal) script work from an external library. Or so I thought - I've checked since, and it doesn't show up in NS. It used to work in NS4.6 (it's the DD fade-in slideshow) so it's not an issue with the code.

    Could you please have a look at this slideshow (ignoring the fact that the header image is WAY too big, and other small things) and tell me what I'm doing wrong?
    And is our future wounded by Philosophies our daddies had?
    - - Alisha's Attic - -

  • #2
    Which version of NS does it not work in?

    A quick look at the code tells me it shouldn't work in any Netscape v4.x browser, you may have previously had a version of the code which would work with that obsolete antique but the code you're using now definitely doesn't.
    Check out the Forum Search. It's the short path to getting great results from this forum.

    Comment


    • #3
      I'm using NS7.1 and can't see it.

      I use NS7.1 and I get the (huge) header, background, and text. The slideshow is not behind the header, as it's supposed to be located under the text.

      The slideshow is accessed perfectly by Opera 7 (7.11) and by IE 6.

      I cut-and-pasted the code from the sourcecode of this page, which is viewed correctly by Opera 7, IE 6, NS7.1, and even NN4.

      And even though I know NN4* is obsolete and a hunk of trash, my line is that if one of my customers has an elderly relative (I'm selling to the family market) who only has an antique browser, then all I can do is suggest they pay for a design around that slideshow, and add an @import: 'get a new browser' .

      I've just checked the code, and it's identical to the code integral on the url listed above - so why doesn't it work on .../slideshow.htm, where it's external? NS7.1 can reference external js, even if NN4* can't!

      Thanks for your patience if you read all that through!
      And is our future wounded by Philosophies our daddies had?
      - - Alisha's Attic - -

      Comment


      • #4
        I was incorrect about the script not working with NS4, I see it doesn't check for it explicitly but it does handle NS4 ok. In fact, if you change the script slightly so that "var dom = false; var ie4 = false" the script works fine in NS6 so the problem is more likely to do with the way the script does it's transitions from one slide to another.
        Check out the Forum Search. It's the short path to getting great results from this forum.

        Comment


        • #5
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

          Remove that line and it will work in NS7.1

          (Don't ask me why. DOCTYPE's in documents create the biggest headache for scripting that I have ever had. Not only do you now have to code cross browser, you have to code for different DOCTYPE's thus doubling/tripling the amount of testing required)
          The answer does not come from thinking outside the box, it comes from realizing the truth :-
          "There Is No Box". [JavaScript Gadgets'n'Gizmos][JavaScript-FX]

          Comment


          • #6
            There is no box!

            Yup, you're right. I'd never have thought of that! Need to get bilingual in JS!
            And is our future wounded by Philosophies our daddies had?
            - - Alisha's Attic - -

            Comment

            Working...
            X