This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Can I send servlet response to javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can I send servlet response to javascript?" Watch "Can I send servlet response to javascript?" New topic
Author

Can I send servlet response to javascript?

suchi patil
Greenhorn

Joined: Feb 12, 2006
Posts: 3
Hello All Forumites,
I have javascript on html page which when loaded, sends parameters to servlet. Now I want to get the information/reply back from the servlet and update only particular area of the same html page where this information fetched needs to be displayed.
Is there any way to do this?
Regards,
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
As far as I know, that's what AJAX is good for.

Moving to HTML and JavaScript...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
or iframes.


Life called,so here I am.<br />Cheers<br />Niki.:-)
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Here's an AJAX faq: https://blueprints.dev.java.net/ajax-faq.html


There is no emoticon for what I am feeling!
 
 
subject: Can I send servlet response to javascript?
 
Similar Threads
automatic refreshing
doing the servlet exercises
How to return just the value not whole HTML?
Accessing servlet variable through JavaScript
quick question