Allows cross domain connections using JSONP protocol. More...
Public Member Functions | |
(void) | - cancel [implementation] |
(id) | - initWithRequest:callback:delegate: [implementation] |
(id) | - initWithRequest:callback:delegate:startImmediately: [implementation] |
(void) | - removeScriptTag [implementation] |
(void) | - start [implementation] |
Static Public Member Functions | |
(CPJSONPConnection) | + connectionWithRequest:callback:delegate: [implementation] |
(CPJSONPConnection) | + sendRequest:callback:delegate: [implementation] |
Allows cross domain connections using JSONP protocol.
Important note: CPJSONPConnection is only for JSONP APIs. If aren't sure you need JSONP, you most likely don't want to use CPJSONPConnection, but rather the more standard CPURLConnection. CPJSONPConnection is designed for cross-domain connections, and if you are making requests to the same domain (as most web applications do), you do not need it.
Definition at line 42 of file CPJSONPConnection.j.
- (void) cancel | [implementation] |
Definition at line 137 of file CPJSONPConnection.j.
+ (CPJSONPConnection) connectionWithRequest: | (CPURLRequest) | aRequest | ||
callback: | (CPString) | callbackParameter | ||
delegate: | (id) | aDelegate | ||
[implementation] |
Definition at line 57 of file CPJSONPConnection.j.
- (id) initWithRequest: | (CPURLRequest) | aRequest | ||
callback: | (CPString) | aString | ||
delegate: | (id) | aDelegate | ||
[implementation] |
Definition at line 62 of file CPJSONPConnection.j.
- (id) initWithRequest: | (CPURLRequest) | aRequest | ||
callback: | (CPString) | aString | ||
delegate: | (id) | aDelegate | ||
startImmediately: | (BOOL) | shouldStartImmediately | ||
[implementation] |
Definition at line 67 of file CPJSONPConnection.j.
- (void) removeScriptTag | [implementation] |
Definition at line 126 of file CPJSONPConnection.j.
+ (CPJSONPConnection) sendRequest: | (CPURLRequest) | aRequest | ||
callback: | (CPString) | callbackParameter | ||
delegate: | (id) | aDelegate | ||
[implementation] |
Definition at line 52 of file CPJSONPConnection.j.
- (void) start | [implementation] |
Definition at line 85 of file CPJSONPConnection.j.