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


Groups > comp.lang.javascript > #17632

Re: ajax request with no response

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <3615309.P3s4tL2RFq@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Mon, 10 Dec 2012 00:25:16 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: ajax request with no response
Newsgroups comp.lang.javascript
References <67WdnSfJBNQHTV7NnZ2dnUVZ_uGdnZ2d@westnet.com.au> <7171452.m6WORY6t7m@PointedEars.de> <0pudneAzZbF8YlnNnZ2dnUVZ_h-dnZ2d@westnet.com.au>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 43
NNTP-Posting-Date 10 Dec 2012 00:25:17 CET
NNTP-Posting-Host 42d15118.newsspool3.arcor-online.net
X-Trace DXC=Lb>5<e:IeVHI7\_^6>c20JMcF=Q^Z^V3H4Fo<]lROoRA8kF<OcfhCOKo;k`8g]<bOGDZm8W4\YJNLJ`:FmdeL>K@@UHR=\35H8D9?jPRU=Fk6F
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:17632

Followups directed to: comp.lang.javascript

Show key headers only | View raw


Andrew Poulos wrote:

> On 10/12/2012 5:51 AM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>> If I'm sending some info to a server using ajax and the "success" server
>>> action is to redirect to another page, do I need to worry about the
>>> (lack of a) response that the original page is expecting?
>>
>> There is always a response.  As much too often with your questions, why
>> do you not try it *before* you post?
>>
>> <http://www.catb.org/~esr/faqs/smart-questions.html#idp29963616>
> 
> 1. You knew that "There is always a response." I did not. Nothing I've
> read about ajax stated that.

Simply trying it would have showed you.

> Still I do not fully understand what "There is always a response." means.

If there is a webserver on the other end, and behaves like you described, 
and if you use the term “redirect” correctly, it will send a(n) (HTTP) 
response.

> 2 You ask a valid question of me but I need some theoretical background
> otherwise I might fluke a solution that collapses when I try it in the
> "real" world.

First get rid of some misconceptions: ajax, page, original page.  Perhaps 
you also have a misconception about what a “redirect” is.  Then read:

<https://developer.mozilla.org/en/docs/AJAX> pp.
<http://en.wikipedia.org/wiki/HTTP> pp.

While you do it, be aware that those are wikis.


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

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


Thread

ajax request with no response Andrew Poulos <ap_prog@hotmail.com> - 2012-12-09 10:43 +1100
  Re: ajax request with no response Stefan Weiss <krewecherl@gmail.com> - 2012-12-09 01:17 +0100
    Re: ajax request with no response JJ <jaejunks@glegooilma-swapit.com> - 2012-12-10 04:17 +0000
      Re: ajax request with no response Stefan Weiss <krewecherl@gmail.com> - 2012-12-10 11:03 +0100
        Re: ajax request with no response JJ <jaejunks@glegooilma-swapit.com> - 2012-12-11 11:06 +0000
  Re: ajax request with no response Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-09 19:51 +0100
    Re: ajax request with no response Andrew Poulos <ap_prog@hotmail.com> - 2012-12-10 08:17 +1100
      Re: ajax request with no response Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-10 00:25 +0100
      Re: ajax request with no response Stefan Weiss <krewecherl@gmail.com> - 2012-12-10 00:53 +0100

csiph-web