JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 8th, 2006, 05:08 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Creating and Saving files

I would like some help creating and saving files, such as forms that are submitted. So when they are submitted they are saved to a folder rather then being emailed, and if that is not possible how can you make the information be transferred over to a email. I can get the form to be emailed but how do I go about doing this. I use a couple of different sites to learn javascript but none really touch on this topic to much.

Geo
__________________
---Official Member Of The Itsacon Fan Club---
Give a man a fish and he will eat for a day. Teach a man to fish and he will sit in a boat all day drinking beer.

Reply With Quote
  #2  
Old April 8th, 2006, 08:51 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 135 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 45 m 13 sec
Reputation Power: 4
They don't touch on this topic, because client-side JavaScript can not maniulate normal files.

You need to use a server-side language, like PHP, to do what you want to do.

Reply With Quote
  #3  
Old April 9th, 2006, 12:23 AM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
I see, well let me ask you this, is the only way to receive data from a client side language, from an email, and if so how would you transfer the variables onto the email itself. I have the basics of creating a form and then sending it but every time I go to send it nothing carries over to the email. I am having a little trouble understanding the process.

Thanks for the information by the way.

Reply With Quote
  #4  
Old April 9th, 2006, 12:32 AM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 135 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 45 m 13 sec
Reputation Power: 4
I assume you're using mailto:. You could use JavaScript to combine the values of the form controls and add them to the body of the email, but I wouldn't recommend it.

I suggest you read this: http://www.apptools.com/rants/mailto.php

Keep in mind that some Internet users use a browser that doesn't have JavaScript enabled.

Reply With Quote
  #5  
Old April 9th, 2006, 09:42 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
So basically I need to use a server side language and a client side language in order for this to function properly. I've read the first link and then went on to the php one and have not finished that tutorial yet, but let me ask you this, can you handle client and server side things with php? and if so is php a compiled language or just a scripting language like html? I do see the point with the mailto problem, so for clarification, is there no other way to either save form data with a client side language even if its to there machine.

For example lets say I had a form that everyone at work needed to fill out on a daily basis, and then email to the boss, would it be possible to have them use the form then it saves to there machine giving them the option to mail it manually. With javascript that is.

I appreciate you time

Reply With Quote
  #6  
Old April 10th, 2006, 12:12 AM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 135 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 45 m 13 sec
Reputation Power: 4
Quote:
Originally Posted by Geo.Garnett
So basically I need to use a server side language and a client side language in order for this to function properly.

No. You need to use a server-side language. Using JavaScript is optional.

Don't use JavaScript for required functionality when you can avoid it.
Quote:
Originally Posted by Geo.Garnett
I've read the first link and then went on to the php one and have not finished that tutorial yet, but let me ask you this, can you handle client and server side things with php? and if so is php a compiled language or just a scripting language like html?

Tutorial?

HTML isn't a scripting or programming language. It's a markup language.

PHP and JavaScript are both scripting languages.

PHP is a server-side scripting language.

JavaScript (ECMA Script) is the only cross-browser client-side scripting language. (There is a server-side version, but it's very rare.)
Quote:
Originally Posted by Geo.Garnett
I do see the point with the mailto problem, so for clarification, is there no other way to either save form data with a client side language even if its to there machine.

For example lets say I had a form that everyone at work needed to fill out on a daily basis, and then email to the boss, would it be possible to have them use the form then it saves to there machine giving them the option to mail it manually. With javascript that is.

Sounds like a stand-alone application written in a language like Java or C++ might be better for this.

With PHP you could set something up to store the emails in a database (probably MySQL), so that employees could come back and edit them before sending them at a later time.

If your company restricts employees to using IE6 then, you can do this with some of it's proprietary functions, but I can't advise you on their use.

Reply With Quote
  #7  
Old April 11th, 2006, 11:20 PM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Ya I am familiar with C++ which is the language that I started learning and the one I have the most grasp of, but programming for web based stuff seems a little over whelming with that language especially when you only are a novice at protocols and such, but it just seemed the functionality of Java was better for today's web based world. You can get the job done with C++ but it seems HTML and Java script is far more set up for handling Web based things. I started looking over JAVA but I got frustrated with learning another language, although the syntax was similar a lot was different. So I figured I would start with the basics of web based programming and work my way to JAVA so I can eventually start building my applets to use for things like what I was asking for. I was mainly asking all these questions to see if the same result would be possible through HTML and Javascript. I appreciate all your input on this subject, cause you've been very help full in clarifying. Right now I am looking into the possibilities of sever side languages but I don't want to get ahead of myself right away.

What I am reading if it matters. W3C.School

Again I appreciate all your assistance Kravvitz, you definitely put things in a better perspective for me.

As far as the example I was giving the company hasn't really asked me to make anything because basically I am not a programmer, I am only a service tech by day and a programmer by night lol. So it was mainly for fun. I guess I should stick with C++ because it is a language I am more familiar with. I can write a basic Socket program that can connect but transfering data with it is where I have problems as well as having multiple people connect. I guess schooling would be a help but where's the fun in that. =)>

Last edited by Geo.Garnett : April 11th, 2006 at 11:26 PM.

Reply With Quote
  #8  
Old April 11th, 2006, 11:40 PM
Kravvitz Kravvitz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2005
Location: USA
Posts: 135 Kravvitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 45 m 13 sec
Reputation Power: 4
You're welcome

Keep in mind that many pages on W3CSchools.com have errors and/or contain outdated information.

Reply With Quote
  #9  
Old April 13th, 2006, 02:24 AM
Geo.Garnett's Avatar
Geo.Garnett Geo.Garnett is offline
Registered Loser
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Location: Retardation Nation...
Posts: 347 Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level)Geo.Garnett User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 3 h 13 m 45 sec
Reputation Power: 4
Send a message via AIM to Geo.Garnett
Ya I've noticed but I do what I usually do with the books I buy for C++ and that is when the examples give me an error and I have checked the accuracy several times, I just trouble shoot their code and / or try to work around it using my own methods. Doesn't always work out but it helps me learn to a point, or at least that's what I tell myself

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Creating and Saving files


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT