944,082 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3641
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 23rd, 2005
0

A question on java script?(Please answer ASAP)

Expand Post »
Hi I just started a new website kind of lame but that will be picked up soon.Ok here is the question did not know where to post it so I am posting it here.It is this:
I am trying to make a users immmm how to called it comment box.You write your comment and by using java script it will send the written stuff to a text file (which is on the server side).I would be very happy if you helped.I have some ideas like using frames but I just can't get the things written in the text area in to the text file (notepad).Ah yeah I forgot my site is www.johnroach.edu.tc
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Come back in 2 weeks and I may give an answer.

P.S. Java != JavaScript
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

As far as I know, Javascript is a CLIENT side scripting language. You Can Not (in any way that I am aware of) use it to store things on the server side. If you want to do that, you might want to look into CGI, or PHP (or ASP).
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Thanks very much.Dang it so I can not read the comments of the visitors.Himmm...Do you know a place where I could get an asp code snippet for such a thing I know nothing on asp.
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Well, there are alternatives. You could use ASP, or PHP. I can code you a CGI that does it easily. You could use the javascript to open a mail window with their default mail client, with the information set up in the body of the e-mail (this is, however, frowned upon, as not all people actually use mail clients in favor of webmail).
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Yeah I know about that I get little edgy when the outlook I never use opens up.What does CGI stand for never heard of it.Can it be used in any server?Or does it need special servers like JSP?Thanks again
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Well, CGI stands for "common gateway interface". Most of the time, when people refer to it, it is regarding the "Perl" programming language. This doesn't have to be the case... however. A Bash Script, or C program can be a CGI. A CGI is namely just a program that the web server runs, and then the program spits out web page information to the surfer. It can do a number of things, however. Such as sending you e-mail, saving log files.... etc, etc. ASP is the same thing, only it uses a visual basic type of syntax to do it's thing. Ask your ISP (or whoever your web page is being hosted by) what type of server side scripting they have available. They may give you a huge list, or they may say "oh, we just have PHP." Either way, we can give you a hand here at Daniweb.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

I am a domaindlx user.So it says CGi ,Perl,PHP3 or Coldfusion is not allowed.They say that they are asp lovers .But thats it my friend just told me no jsp either.Think thats what you get when the server is free.Thanks again but what is your advice now?
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Do it in ASP. There are certainly free ASP's on the web that can do what you want. You want them to be able to enter certain information (survey questions or whatever) and have them e-mailed to you? Or have them saved in a log file? ASP can do that, and there are hundreds of examples and free ASP scripts if you google it.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Mar 23rd, 2005
0

Re: A question on java script?(Please answer ASAP)

Actually I wanted them to be in a txt file that is stored on the server.Under which keywords should I google such a snippet .don't know anything on asp do they have a reserved code word for such a task?Thanks Again
Reputation Points: 11
Solved Threads: 0
Junior Poster
johnroach1985 is offline Offline
135 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Confused about loops and switch
Next Thread in Java Forum Timeline: Need Big Help !!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC