Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26958

Re: Can I test ajax if I don't have any database or any server. I just run local

Newsgroups comp.lang.javascript
Subject Re: Can I test ajax if I don't have any database or any server. I just run local
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <mctifg$q5r$1@dont-email.me> <mcv7a9$dos$2@dont-email.me>
Date 2015-03-01 16:04 +0100
Message-ID <XnsA450A3748F21eejj99@194.109.6.166> (permalink)

Show all headers | View raw


Denis McMahon <denismfmcmahon@gmail.com> wrote on 01 mrt 2015 in 
comp.lang.javascript:

> On Sun, 01 Mar 2015 00:20:00 +0100, Tony Johansson wrote:
> 
>> I just wat to text how it works from javascript or jQuery.
>> Is this possible or impossible?
> 
> You can create json or xml documents and request them with ajax requests. 
> But you'll need a server, because ajax talks to a server.

While the x in Ajax stand for xml, 
any file can be requested and streamed,
as long as browser security restrictions are not compromised.

var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'justafile.txt', true);
xmlhttp.send();

Json and xml are just ways such files can be structured.

> What you don't need for ajax is a database.

Indeed, also no swimming pools.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can I test ajax if I don't have any database or any server. I just run local "Tony Johansson" <johansson.andersson@telia.com> - 2015-03-01 00:20 +0100
  Re: Can I test ajax if I don't have any database or any server. I just run local Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-03-01 02:52 +0100
  Re: Can I test ajax if I don't have any database or any server. I just run local "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-02-28 20:05 -0800
  Re: Can I test ajax if I don't have any database or any server. I just run local Tim Streater <timstreater@greenbee.net> - 2015-03-01 09:15 +0000
  Re: Can I test ajax if I don't have any database or any server. I just run local JJ <jj4public@vfemail.net> - 2015-03-01 18:36 +0700
  Re: Can I test ajax if I don't have any database or any server. I just run local Denis McMahon <denismfmcmahon@gmail.com> - 2015-03-01 14:22 +0000
    Re: Can I test ajax if I don't have any database or any server. I just run local "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-03-01 16:04 +0100
    Re: Can I test ajax if I don't have any database or any server. I just run local Tim Streater <timstreater@greenbee.net> - 2015-03-01 17:26 +0000
      Re: Can I test ajax if I don't have any database or any server. I just run local Denis McMahon <denismfmcmahon@gmail.com> - 2015-03-02 10:14 +0000

csiph-web