Javascript Information Retrieval

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shaun McKinnon

    Javascript Information Retrieval

    Anyone:

    Is there anyway to use javascript to be able to retrieve information from
    someone, then have it post to a text document on a server? Without
    overwriting whats in the document at the time. The server I'm using doesn't
    support php, asp, or anything to be able to database (that and i don't even
    know how, yet). Plus, I don't need it to retrieve from a database...just a
    simple text file that can be written to and read from.

    Thank you in advance

    Shaun McKinnon


  • Bill M.

    #2
    Re: Javascript Information Retrieval

    > Is there anyway to use javascript to be able to retrieve information from[color=blue]
    > someone, then have it post to a text document on a server? Without
    > overwriting whats in the document at the time. The server I'm using[/color]
    doesn't[color=blue]
    > support php, asp, or anything to be able to database (that and i don't[/color]
    even[color=blue]
    > know how, yet). Plus, I don't need it to retrieve from a database...just[/color]
    a[color=blue]
    > simple text file that can be written to and read from.[/color]

    I wouldn't think so.

    JS is completly client side. There is really a pretty good disconnect from
    the server once the browser/client receives the page. I think you'll need to
    use some server side scripting. I like Perl. You may need to find a new
    server that suits your needs.

    Bill


    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Javascript Information Retrieval

      Shaun McKinnon wrote:
      [color=blue]
      > Is there anyway to use javascript to be able to retrieve information from
      > someone,[/color]

      From someone: No, the same origin policy most certainly forbids that.
      From servers under your control (of the same second-level-domain): Yes.
      You can use XMLHTTPRequest and other methods that have been already
      discussed here (not so long ago.)
      [color=blue]
      > then have it post to a text document on a server?[/color]

      You need a server-side application to manipulate the filesystem
      of the server. This can be a JavaScript application, though.
      [color=blue]
      > Without overwriting whats in the document at the time.[/color]

      Server-sided, you can do almost anything with
      a file, including appending data to it.
      [color=blue]
      > The server I'm using doesn't support php, asp, or anything to be able to
      > database (that and i don't even know how, yet).[/color]

      Tough luck. You need such technologies to do what you want.
      [color=blue]
      > Plus, I don't need it to retrieve from a database...just a
      > simple text file that can be written to and read from.[/color]

      You do not need a database management system necessarily for
      server-side applications, however. I think a simple CGI script
      will suffice here.

      But there is the Copyright and author's rights issue, too. You are not
      allowed to use content created by others as your content until you have
      their (explicit) consent. So if you were thinking about that, forget it
      immediately or live with the consequences.


      PointedEars, IANAL

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Javascript Information Retrieval

        Bill M. wrote:
        [color=blue]
        > JS is completly client side.[/color]

        Wrong. There is client-side and server-side JavaScript.


        PointedEars

        Comment

        Working...