File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Ajax and post messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Ajax and post messages" Watch "Ajax and post messages" New topic
Author

Ajax and post messages

Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 40

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 ?

Life is not measured by the number of breaths we take, but by the moments that take our breath away.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Alexandru Gifei
Ranch Hand

Joined: May 19, 2012
Posts: 40

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax and post messages