aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax in Websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax in Websphere" Watch "Ajax in Websphere" New topic
Author

Ajax in Websphere

Lee Sha
Ranch Hand

Joined: Nov 02, 2007
Posts: 66
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.


Never tired...
SCJP SCWCD INS21 INS22 INS23 Salesforce Dev401
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31062
    
232

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Ajax is a client-side mechanism. There is nothing that you need to do on the server to enable it.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Lee Sha
Ranch Hand

Joined: Nov 02, 2007
Posts: 66
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

Joined: Jan 10, 2002
Posts: 61766
    
  67

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

Joined: Nov 02, 2007
Posts: 66
Great!!! Thanks. I got started off with my first AJAX implementation...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax in Websphere