Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16826
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="ISO-8859-1" |
| Message-ID | <3451959.NK5rUynJWR@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Wed, 24 Oct 2012 01:45:44 +0100 |
| User-Agent | KNode/4.4.11 |
| Content-Transfer-Encoding | 7Bit |
| 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 and jsonp and mobile |
| Newsgroups | comp.lang.javascript |
| References | <UYmdnaH3qI_a8B3NnZ2dnUVZ_tWdnZ2d@westnet.com.au> |
| Followup-To | comp.lang.javascript |
| MIME-Version | 1.0 |
| Lines | 60 |
| NNTP-Posting-Date | 24 Oct 2012 02:45:45 CEST |
| NNTP-Posting-Host | c3bb1b53.newsspool3.arcor-online.net |
| X-Trace | DXC=Vb3ZHjaXYZBC4i^e1BZ=_HMcF=Q^Z^V3H4Fo<]lROoRA8kF<OcfhCOKC?h^emQ26NKDZm8W4\YJNLJ`:FmdeL>K@JjkNj3FBJ;IgB:n7X7Y0>F |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:16826 |
Followups directed to: comp.lang.javascript
Show key headers only | View raw
Andrew Poulos wrote: > AFAIK > > AJAX That is a misnomer which leads to misconceptions. Forget about it. > - not cross domain Not necessarily. You can allow that now with a header field. See the other answer. > - has error handling Not necessarily. There are errors that cannot be handled. > JSONP > - cross domain Not necessarily. You can forbid that based on the Referer (sic!), but it can be circumvented. > - no error handling Not necessarily. You can add error handling. > - insecure Not necessarily. HTTP over SSL/TLS can be used the same as it can with XHR. > - adds javascript elements to the page No, it adds `script' elements to an (X)HTML document. That is where that technique is inherently unreliable, because AFAIK there still is no (quasi-)standard specifying what is supposed to happen then. Proper tests are pending. > Both can return the same "data" No. A script inserted with JSONP can include code that is compiled and executed immediately. A script returned from XHR needs to be inserted/evaluated before it is executed. > and in my testing I couldn't find any real speed differences between the > two. Test more. > If I'm writing a mobile app in HTML5 which needs to talk with a > web-based database. Is JSONP the only option? No. PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7@news.demon.co.uk> (2004)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
ajax and jsonp and mobile Andrew Poulos <ap_prog@hotmail.com> - 2012-10-19 07:57 +1100 Re: ajax and jsonp and mobile Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-19 00:23 +0200 Re: ajax and jsonp and mobile Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-24 01:45 +0100
csiph-web