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: Jason Stephenson <email@hidden>
- Date: Thu, 23 Oct 2008 09:25:32 -0400
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