6 Replies Latest reply on Jun 20, 2008 12:57 PM by

    JS Script Calls

    Level 7
      Hey all -

      I inherited a page with these calls in the head:

      <script src='scripts/F-Fix.js'></script>
      <script src='scripts/ActiveContentDropDown.js'
      type='text/javascript'></script>
      <SCRIPT src="scripts/sticky.js" type=text/javascript></SCRIPT>

      I have always coded mine like the third one - would appreciate your counsel.


        • 1. Re: JS Script Calls
          Level 7
          > <script src='scripts/F-Fix.js'></script>
          > <script src='scripts/ActiveContentDropDown.js'
          > type='text/javascript'></script>
          > <SCRIPT src="scripts/sticky.js" type=text/javascript></SCRIPT>
          >
          > I have always coded mine like the third one - would appreciate your
          > counsel.

          You don't want to use uppercase tags if you are writing xhtml. If HTML,
          doesn't matter.

          It's a good idea to quote all of your attribute values, though.

          -Darrel


          • 2. Re: JS Script Calls
            Level 7
            Thanks Darrel,
            by quote do you mean "quote" vs. 'quote' ?


            "darrel" <notreal@nowhere.com> wrote in message
            news:g27ek0$n2d$1@forums.macromedia.com...
            >> <script src='scripts/F-Fix.js'></script>
            >> <script src='scripts/ActiveContentDropDown.js'
            >> type='text/javascript'></script>
            >> <SCRIPT src="scripts/sticky.js" type=text/javascript></SCRIPT>
            >>
            >> I have always coded mine like the third one - would appreciate your
            >> counsel.
            >
            > You don't want to use uppercase tags if you are writing xhtml. If HTML,
            > doesn't matter.
            >
            > It's a good idea to quote all of your attribute values, though.
            >
            > -Darrel
            >


            • 3. Re: JS Script Calls
              Level 7
              On 04 Jun 2008 in macromedia.dreamweaver, Ken Binney wrote:

              > by quote do you mean "quote" vs. 'quote' ?

              Either one is acceptable. And every script tag should have a type
              attribute - it's missing in the first one.

              --
              Joe Makowiec
              http://makowiec.net/
              Email: http://makowiec.net/contact.php
              • 4. Re: JS Script Calls
                Level 7
                > by quote do you mean "quote" vs. 'quote' ?

                No I mean quote vs. ("quote" or 'quote')

                ;o)

                -Darrel


                • 5. Re: JS Script Calls
                  Level 7
                  What?

                  Ya mean there are no doublequote nazis out there ?

                  Many thanks guys




                  "darrel" <notreal@nowhere.com> wrote in message
                  news:g27ml3$1h0$1@forums.macromedia.com...
                  >> by quote do you mean "quote" vs. 'quote' ?
                  >
                  > No I mean quote vs. ("quote" or 'quote')
                  >
                  > ;o)
                  >
                  > -Darrel
                  >


                  • 6. Re: JS Script Calls
                    I am not clear with the code improvix=zation will you please give more details