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


Groups > comp.lang.javascript > #16719

Re: ajax and jsonp and mobile

From Cezary Tomczyk <cezary.tomczyk@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: ajax and jsonp and mobile
Date 2012-10-19 00:23 +0200
Organization Aioe.org NNTP Server
Message-ID <k5pvh2$u1g$1@speranza.aioe.org> (permalink)
References <UYmdnaH3qI_a8B3NnZ2dnUVZ_tWdnZ2d@westnet.com.au>

Show all headers | View raw


W dniu 2012-10-18 22:57, Andrew Poulos pisze:
> AFAIK
>
> AJAX
> - not cross domain

Not really, but there is some conditions. See: 
https://developer.mozilla.org/en-US/docs/HTTP_access_control

> - has error handling
>
> JSONP
> - cross domain
> - no error handling

The workaround is to use setTimeout. Not perfect, but personally I don't 
know better way.

> - insecure
> - adds javascript elements to the page

-- 
Cezary Tomczyk
http://www.ctomczyk.pl/

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


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