Results 1 to 2 of 2

Thread: js files

  1. #1
    Join Date
    Mar 2013
    Thanked 0 Times in 0 Posts

    Default js files

    G Day

    Im using win7 starter, no matter how I set the security I am unable to download/open the js files here.
    I am actually only looking for the sticky tooltip one at the moment.
    Could I not just copy the script inside of the file and save it as a .js ?

    thanks very much.

  2. #2
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    That would be fine. You need a .js file with the same name as the original and with the same content as the original. If you have that, and upload it to the right location, it will be correct.

    Of course, just be sure to use a plain text editor (not something like MS Word) because a .js file is really just a .txt file with ".js" in the name-- there's no hidden formatting, just plain text saved under the name of ".js" or "Javascript" to tell the server what to do with it.

    (The only potential exception to this, and it shouldn't ever be a practical problem for you, might relate to character encoding-- if you're ever using characters outside of the normal range for English letters, numbers and punctuation, you might find that some characters get changed or appear differently if you cut and paste rather than saving the file. That will probably never happen with a DD script. But I mention it just on the rare chance that you, or someone else who happens to come across this thread, encounters that situation later. The only hidden information in a .txt file (or .js) is the encoding format for the text inside it.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Similar Threads

  1. Replies: 3
    Last Post: 12-15-2011, 03:02 PM
  2. .DAT files?
    By TheJoshMan in forum Other
    Replies: 3
    Last Post: 10-29-2008, 07:13 PM
  3. nav to php using other php files
    By Mettes in forum PHP
    Replies: 2
    Last Post: 06-23-2008, 09:50 AM
  4. web.xml and map files
    By alim27 in forum Java
    Replies: 1
    Last Post: 05-23-2008, 07:21 AM
  5. PHP and zip files
    By kosi in forum PHP
    Replies: 2
    Last Post: 04-01-2007, 07:59 PM


Posting Permissions

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