Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Saving data in Web

    Good day,

    i wish to know if it is possible to save and retrive a data you typed without the use of cookies or server related things,

    will it be possible by using Java? ActiveX or javascript?

  • #2
    Regular Coder
    Join Date
    Oct 2005
    Location
    NYgamers.net
    Posts
    108
    Thanks
    0
    Thanked 0 Times in 0 Posts
    JavaScript can pull the contents of a form or url after it's been submitted. (I think)

  • #3
    Regular Coder
    Join Date
    May 2005
    Posts
    142
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Cookies: Javascript's only storage medium.

    You can use javascript to store form contents into cookies, and retrieve them later. That's about the only way to do it with javascript because javascript is limited, and can not save anything to the client's comp (besides the cookie).

    Server side storage is the other alternative... I use CGI/Perl to store input from my site's users on the server side, and to retrieve it for use later.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,500
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    The only thing a website can write on a visitor's PC is cookies.

    If you are the website developer, you can only save data on your
    own web server, not on the visitor's PC.

    You could have software to save data on your own PC ... if that
    software is running on your PC ... but that's not the control of
    the website, it would be something installed on your PC, like a
    spyware program.

    If you're talking about an "automatic form filler-outer", again, that
    would be some software program running on your PC. Same thing
    with a key-logger.

  • #5
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts
    oki, thnx guys...

    i'm actually trying to create a chat-like or forum-like in an offline single pc for other users to input messages then later one can view it and add more messages.

    I tried using cookies but it seems to be unreliable because it can be expired or erased and sometimes all the messages are gone or other related things like limited size, etc etc...

    so are there software specialized for that purpose that can be integrated in IE? will Java applets do the work?

  • #6
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    For a chat based 'program' you will need some sort of serverside interaction. A database or flatfiles would be manditory (sp). Can't store a chat converstation in a cookie afaik unless it's only ever between 2 people it could be possible, but extremely hard work. Would be best with a serverside language and a database.

  • #7
    New Coder
    Join Date
    Sep 2004
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ken_shoti
    in an offline single pc
    If this is for a single PC, why do you need web programming? From what I understand, you are using only one computer. Did I miss something or can you just make simple program that saves everything in a text file?

    You can do that in c++ in under a minute

  • #8
    Regular Coder
    Join Date
    Nov 2005
    Posts
    230
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thnx for your replies, i really wanted it to be viewed in an internet browser in just one pc, i'm actually working on something like information to be accessed for all users of the computer. i even plan to compile it as an EXE file.

    saving a file as a text will also be good.

    perviously i use the "view-source" code to open the notepad and add more things inside, like a chat type. but i wanted it easier for others to input text adn just click a button to save.

  • #9
    New Coder
    Join Date
    Feb 2006
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    I want to save all those you typed (fill up) in a text area for CD Webpage... how's that? Saving the file in your computer... (not a webbased) i mean in java script... how will you do that?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •