SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast ListerMint's Avatar
    Join Date
    May 2002
    Location
    Iowa, USA
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Back up directory levels

    I have a simple question. How do backup directories levels in JavaScript?

    <SCRIPT LANGUAGE="JavaScript" SRC="(../)js/browserdetect.js"></SCRIPT>

    The text in parenthesis doesn't work (which you guys probably already know).

    What does work?

    Thanks, ListerMint
    Oh! Drat these computers. They're so naughty and so complex. I could just pinch them.

    Visit Lint's Prints

  2. #2
    Sultan of Ping jofa's Avatar
    Join Date
    Mar 2002
    Location
    SvÝ■jˇ­
    Posts
    4,080
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This works for me:
    <script language="javascript" src="../inc/functions.js"></script>


  3. #3
    SitePoint Enthusiast ListerMint's Avatar
    Join Date
    May 2002
    Location
    Iowa, USA
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's what I used. I'll try again. Maybe there was a typo.

    Thanks

    ListerMint
    Oh! Drat these computers. They're so naughty and so complex. I could just pinch them.

    Visit Lint's Prints

  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing special about paths to JavaScript files! The usual rules apply - as they do to HTML files, images, ASP includes, etc.......

    (search and ye shall find)
    http://www.sitepointforums.com/showt...t=include+path


    M@rco
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •