Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ajax in Websphere

 
Lee Sha
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am planning to user Ajax framework in my currect application running on Websphere. Do I have to import any libraries to make it work or can anyone tell me how I can set up my environment for using Ajax.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34371
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lee,
AJAX is a concept. While you could hand code it, you more likely want to use a library/framework. Which will require a separate jar.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax is a client-side mechanism. There is nothing that you need to do on the server to enable it.
 
Lee Sha
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried this out and it is working fine only when the servlet returns a text response. For XML response, I am not able to parse it. I guess, the javascript does not recognize it. Can anyone help me in this regard?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An XML response is a text response.

Ajax will parse the XML document for you. The parsed DOM is available via the responseXML property.
[ February 22, 2008: Message edited by: Bear Bibeault ]
 
Lee Sha
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great!!! Thanks. I got started off with my first AJAX implementation...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic