Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing a text area via menu list

    Ok, this is going to sound odd I think..

    I have a page with a textarea and a menu / list.
    I need to be able to select an entry from the menu / list, download a text file, and load the content into the textarea (replacing anything that was there).

    I can do it all in PHP / Javascript, but was wondering if it is possible without the page reloading?

    Many thanks in advance.

    Andy

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Posts
    112
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The page has to reload, the textbox does not however, if you use frames. I did something somewhat like that with my PHP chat room.

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    You can use XMLHTTP to read the content of the file from javascript.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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