• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax+ image+ servlet

 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure whether to put it under Ajax or servlet forum. Anyways, I want to push an image(dynamically generated one) from server to client and update it inside a div or may be as it is. How do I render it in through Ajax & servlet, because ajax can only help me receive text or xml.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There really is no reason to use Ajax to update an image if that is the only thing that is being updated. All you need to do is set the source.



Eric
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
There really is no reason to use Ajax to update an image if that is the only thing that is being updated. All you need to do is set the source.



Eric


Will this piece of code hit the server?
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Akhilesh Trivedi:


Will this piece of code hit the server?


Yes it did, had to transfer my server-side code from doPost to doGet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic