external javascript file not working on server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    #1

    external javascript file not working on server

    external javascript file not working on server
    Code:
    <script type="text/javascript" src="../include/common.js"></script>
    while internal wrking fine
    Code:
    <script language="JavaScript">
    .
    .
    </script>
    i changed it to
    Code:
    <script  language="JavaScript"src="../include/common.js"></script>
    but still not working
    its working properly at localhost
    kindly help to solve my problem
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    are you sure the file exists at the designated place on the server?

    Comment

    • kkshansid
      New Member
      • Oct 2008
      • 232

      #3
      ya i have only three folders
      this file is in include folder
      other two folder files include this java script file

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        try to access the file through the navigation bar.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Can you provide the directory structure please?

          Comment

          • kkshansid
            New Member
            • Oct 2008
            • 232

            #6
            Originally posted by Dormilich
            try to access the file through the navigation bar.
            i can access it through navigation baar

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              the link you gave did not provide a valid javascript file… besides that, make sure that the case of the letters matches (some file systems are case sensitive).

              Comment

              • Atithi
                New Member
                • Oct 2006
                • 5

                #8
                since the first code section given by you is correct in syntax. i think the path to the file is not correct. Note that the path over here is relative .

                Comment

                • kkshansid
                  New Member
                  • Oct 2008
                  • 232

                  #9
                  Originally posted by Dormilich
                  the link you gave did not provide a valid javascript file… besides that, make sure that the case of the letters matches (some file systems are case sensitive).
                  u were right it was case sensitve at server

                  Comment

                  Working...