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 Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Saving the inputs

    Is there any way to save the words typed in the input fields date,rank/name and nric using javascript and then I carry on filling in the other forms?
    Pls help.Thankssss
    Attached Files Attached Files
    Last edited by akuterrer; 06-03-2004 at 02:58 AM.

  • #2
    New Coder
    Join Date
    May 2004
    Location
    Some place called the Earth I think...
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean somthing like this:

    Code:
    <html>
    <head>
    
    <script>
    
    function Type() {
    
    document.all.span1.innerHTML= form1.date.value ;
    }
    </script>
    
    
    </head>
    <body>
     <br>
    <form id="form1">
        <b>Html: 
        <Textarea id="date" onkeyup="Type();"></textarea>
    </FORM>
    <br><BR>
    
    <span id="span1" style="background:#BBB;width:400px;height:400px;"></span>
    
    </body>
    </html>
    Dont do drugs, get high on life

    13 years and getting nowhere fast.....


    đ­˘M_M÷˝kŔą

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    http://www.webxpertz.net/faqs/jsfaq/passvars.php

    But if you want the data to be persistent the next time the user visits the page, you have to store the data to a database. And you need a server-side language to do that.
    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
    •