Thread: JavaScript question

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    JavaScript question

    Is it possible to save a file (containing an integer variable) on the server using JavaScript? Then how?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    If you mean for uploading to a file, then you can do this with an

    <INPUT TYPE="FILE">

    tag....you need some sort of CGI to proerly accept, decode and store this file to exist on the server..

    P.S....this would be better on the Tech Board

  3. #3
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    Well you can use ASP with javascript to do that....

  4. #4
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    or php with javascript (down with ASP!).

  5. #5
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    The closest thing with pure javascript would be saving a cookie on the users HD.

  6. #6
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,490
    javascript is pretty much a client-side script language. it's useful to animate, update, or otherwise change some features which are dependant on a variable present on the user's machine.

    for any server-side stuff, i would stick with php, asp, or something cgi.

  7. #7
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    K, thanks for the replies.
    Do you know any good php tutorials?
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  8. #8

  9. #9
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by maes
    How about the php manual
    Took a quick look at the link, and it seems great.
    Thanks!
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  10. #10
    Registered User Aran's Avatar
    Join Date
    Aug 2001
    Posts
    1,301
    also go over to http://devshed.com and http://devarticles.com for some atricles/tuts... they are both great sites.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. JavaScript book recommendations
    By neandrake in forum Tech Board
    Replies: 2
    Last Post: 04-05-2009, 12:27 PM
  2. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  3. Replies: 2
    Last Post: 03-10-2009, 08:36 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM