Re: Persistent Connection to Web Server in cocoa, emulating AJAX
Re: Persistent Connection to Web Server in cocoa, emulating AJAX
- Subject: Re: Persistent Connection to Web Server in cocoa, emulating AJAX
- From: Jack Carbaugh <email@hidden>
- Date: Thu, 23 Oct 2008 10:09:37 -0400
the process is as follows ...
a request/command is sent to a URL which processes the request.
The result is then sent out of a "responder" at another URL.
So what i'm wanting to do, i suppose, is to continually poll the
"responder" URL and process it's results.
On Oct 23, 2008, at Thu-10 /23 /08-9:25 AM, Jason Stephenson wrote:
Jack Carbaugh wrote:
What is the best way to emulate, with cocoa, an AJAX persistent
connection to a web server.
There is no persistent connection to a web server. HTTP does not
preserve state between discrete requests. This is why cookies were
invented and session variables stored on the server.
Well-implemented AJAX applications may give the appearance of
persistence, but they are still initiating a discrete XMLHTTPRequest
any time they need new data from the server.
I've reviewed NSURLConnection, but am not sure if it what i need.
You might want to use WebKit and JavaScript. However, I can't make
any useful suggestions without knowing more about what you really
want to achieve.
Jason
Thank you!
Jack
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden