• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax and post messages

 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am developing an android application which should do the following: send post messages to a web server, and these received values/strings should appear on web page modified in real time. I know that i have to use Ajax.
The android part is not so important in my oppinion, but here it is (Its a class i use to send messages)



My application atm cand send post messages to web server, and i can display them on web site, but i need to refresh the page. So, the content of the textarea should refresh every time when $androidmessages is modified by a received post message. What should i do ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand your question. What is your question? Is it an Android question, updating some android UI element, or updating html based on an Android UI element. I think in that case that would be an Android question.
Is your question an ajax question to update your page/html in a webview. Then that is just straight HTMl/JavaScript and the fact that the html is displayed in Android has no affect on how to do Ajax at all.

Also the topic title confused me. You aren't trying to compare Android to Ajax. And it wouldn't be comparable.

Mark
 
Alexandru Gifei
Ranch Hand
Posts: 42
Java Linux Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is not about android, its about ajax and html/javascript. I dont want to display data in android, i get data from android and send it to web page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic