1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    This is my code so far:

    <TITLE>Alpaca Organizer</TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    function displayInfo()
    document.write("<H1>Alpaca Name: " + this.name + "</H1></HR><PRE>");
    document.write("Alpaca Number: " + this.number);
    document.write("The father of " + this.name + " is " + this.father + ".");
    document.write("The mohter of " + this.name + " is " + this.mother +".");

    function alpaca()
    this.name=prompt("Enter the alpaca's name","Name");
    this.number=prompt("Enther the alpaca's number","Number");
    this.father=prompt("Enter " + this.name + "'s father","Father");
    this.mother=prompt("Enter " + this.name + "'s mother","Mother");

    newAlpaca=new alpaca();
    <SCRIPT LANGUAGE="JavaScript">

    Now what I want to be able to do is after it writes everything to the page, there needs to be a button at the button that says "Save it" and then it would save it to a file on the recipients harddrive. Also, I want it to be easy to edit the info so if there is a way for the recipient to easily edit say the mother's name without haveing to go through the rest I would really appreciate it if somebody could tell me.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    If you mean the users drive, you can't do that, except with signed scripts in later versions of JavaScript. If you mean your drive, you'll need to use CGI or similar to write it to a file or database.

    What you *can* do is set a cookie, which you can retrieve again on your site if needs be, but there are limitations. In your favourite search engine, search for "javascript AND cookies", or check out www.cookiecentral.com for more information.


Similar Threads

  1. Replies: 1
    Last Post: December 16th, 2003, 04:39 PM
  2. createObject Vs as New Keyword
    By imran189 in forum Visual Basic Programming
    Replies: 3
    Last Post: November 11th, 2003, 07:19 PM
  3. Windows: How to bring another application to foreground
    By cocoabean in forum C Programming
    Replies: 2
    Last Post: July 21st, 2003, 06:34 AM
  4. Passing fake keystrokes to a third part application
    By jattie in forum C Programming
    Replies: 2
    Last Post: November 4th, 2002, 12:16 AM
  5. Replies: 1
    Last Post: February 6th, 2002, 01:54 PM

IMN logo majestic logo threadwatch logo seochat tools logo