Results 1 to 6 of 6

Thread: saving text to file in javascript?

  1. #1
    NOMADMAN
    Guest

    Question saving text to file in javascript?

    in javascript is there a way to save user added info (i.e. text) to the serverside webpages. Sort of like a logging script that tell the location, I can get the location; not the problem, of the users that have previously been there. This way other users can see where other users have come from...

    Got it?

    Thanks!
    NOMAD

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    If they are submitting the page, then yes. Just have some hidden inputs in the form. Have the client-side script fill in the hidden inputs, and then have the server side whatever make the changes appropriately.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    NOMADMAN
    Guest
    Sounds good, sounds like what I'm tring to do.

    But, I'm new to javascript. How would I actually do the saving to the server-side page. A code snip would be very helpful.

    Thanks!

    NOMAD

  4. #4
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    I've never messed with JavaSript server-side, so I don't know. You can check out developer.netscape.com or developer.mozilla.com. They should have doco on server-side JavaScript.

    I was thinking you were doing something else server-side: ASP, PHP, CGI, JSP, et al.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  5. #5
    NOMADMAN
    Guest
    Thanks, I guess I could ty using ASP... heard its easy to learn. Thats for your help

  6. #6
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    i don't think that server side JS has the capability by itself to do that.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

Posting Permissions

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



Click Here to Expand Forum to Full Width