37 users online (0 members and 37 guests)  


  Results 1 to 2 of 2

Related

  1. need help with onclick link to external .JS file    Forum: Javascript Forum
    Replies: 0
  2. Adding values to an external .js Javascript file?    Forum: Javascript Forum
    Replies: 3
  3. call external Javascript(PHP) with passing value    Forum: Javascript Forum
    Replies: 2
  4. help checking form elements in external js file    Forum: Javascript Forum
    Replies: 2
  5. passing values to an external .js file    Forum: Javascript Forum
    Replies: 10
  1. #1
    legosdrgn's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    1

    Question Retrieving text from an external file using javascript

    okay, here's what i want to do. Make a javascript onClick method that replaces text within an id'ed font tag with the text in an external file. basically i just want it to be similar to a <a> tag, except without replacing an loading an entire page, just the text. pleeeeez help!

  2. #2
    woodknut's Avatar
    Disabled

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    32
    I've been wanting to do a similiar thing.
    What I have found is that you can not do file open, read, write with Javascript. The "language" was purposefully written that way for security reasons.

    ASP, and other methods are needed.

    You can however load a variable in a *.js file that can then be used.
    W.