HTML-statuscodes für comments
Posted: Fri Jan 21, 2011 11:16 am
I have built an iPhone-/iPad-App on top of my sy9-blog which takes the contents of the RSS feed and puts it into an iPhone-friendly design. I do the same with the comments-RSS. Writing comments is done through the s9y comments-form, which is presented in an iPhone-optimized webseite. So far so good...
My problem now is how to handle everything after a comment is posted. Right now the app shows the "normal" website with the indication that the comment was successfully or unsuccessfully posted, which is not very beautiful. At this point I would like to use HTML statuscodes to fire up a pop-up which tells the writer what has happened. I already do that in my app for example with Twitter. Something like this:
Is something like this possible for the comments in s9y as well? Something with the wfwComment API? How can I use it? Thanks in advance!
My problem now is how to handle everything after a comment is posted. Right now the app shows the "normal" website with the indication that the comment was successfully or unsuccessfully posted, which is not very beautiful. At this point I would like to use HTML statuscodes to fire up a pop-up which tells the writer what has happened. I already do that in my app for example with Twitter. Something like this:
Code: Select all
if (statusCode == 200) {
showMessage @"Tweet successfully posted."; }
else if (statusCode == 401) {
showMessage @"Tweet could not be posted."; }
...