Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Node.js Date: Thu, 14 Oct 2021 15:41:41 +0200 Lines: 35 Message-ID: References: <5f57e300-fd03-466c-96af-75fd67f72420n@googlegroups.com> <59c3716a-2c09-432c-8822-06b48a007bb2n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net pQaU9xwgmqtp3vIziYSztg5/7ad8gnX2444Da7yHuirG5W3zH6 Cancel-Lock: sha1:AdSnVWuFd0QRtXwOuKz+jiRdbZc= In-Reply-To: <59c3716a-2c09-432c-8822-06b48a007bb2n@googlegroups.com> Xref: csiph.com comp.lang.javascript:40476 Jonas Thörnvall: > Well i understand howto "echo" information from server now, but i do > not quite remember howto request things using client "browser". I Then learn it! The things you need to understand: - HTTP - URL - query parameters - CGI > remember that i in PHP did fetch information from a database using > forms and input fields that was dynamically created, so i must sent > requests via javascript to server? But i do not remember what such a > call "request" looked like. You just send a request with your browser and the server will process it. This request can be: - URL with or without any query parameter (...). - A form which gets submitted (
) - An XHR request using JavaScript > How would i done the above as a request, via a HTML page with script, > for example a button push echoed answer to textarea? Go and get a book about how HTTP, CGI etc. works. To explain this *here* is WAY OFF TOPIC! -- Arno Welzel https://arnowelzel.de