HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 1999, 03:40 PM
flamingsouls
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi
This is my code so far:

<HTML>
<HEAD>
<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 +".");
document.write("</PRE>");
}

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");
this.displayInfo=displayInfo;
}

newAlpaca=new alpaca();
-->
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
newAlpaca.displayInfo();
-->
</SCRIP>
</BODY>
</HTML>

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.

Reply With Quote
  #2  
Old July 17th, 1999, 06:07 PM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Cheers,
adam

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Help with application!

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap