Results 1 to 6 of 6

Thread: trouble opening files

  1. #1
    Join Date
    Feb 2006
    Location
    colorado
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default trouble opening files

    script: Top Navigational Bar (aka Smart menu)
    http://www.dynamicdrive.com/dynamicindex1/sm/index.htm


    I am having trouble opening JScript files. All I keep getting is "document undefined". I am trying to open menucontext so I can edit the nav bar. I am pretty new at this so I dont know if this is a common problem or not. Please help!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Not a common problem, no. Try opening it in Notepad (or Simple Text, if you Mac).
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2006
    Location
    colorado
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am not being given an option of what to open it with. Even when I right click I cant force it to open in any piticular program. I just learned that not all js files say error, just the menu.js. When I click on menucontext.js it brings up a box titled "file download-security warning" (as all js. files from dynamic drive oddly seem to do). It tells me info on the file (name, publisher, type) and gives me the option to either open or close. When I select to open the file nothing seems to happen other than the window disappearing.

    I am very confused, any suggestions are welcome and worth a shot, thanks
    Aaron

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you are using a browser like IE6 that can be very picky about .js files, you need to download the entire package and unzip it, that is the simplest way to obtain the files (from the demo page):

    Simply download the following file, and follow the instructions in the readme.txt file.

    By way of explanation, I thought you had already done that and were having trouble opening the files locally on your computer.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The problem is that the extension .js is used for Microsoft's JScript command scripting. After right-clicking and saving the target somewhere, open Notepad, click press ctrl-o, select "all files" in the drop-down box, then navigate to the file and open it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Feb 2006
    Location
    colorado
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    I am now able to open them...thanks alot!

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
  •