aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How is the Event Handling in Ajax ? 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 "How is the Event Handling in Ajax ?" Watch "How is the Event Handling in Ajax ?" New topic
Author

How is the Event Handling in Ajax ?

Jesu Mani
Ranch Hand

Joined: Oct 16, 2006
Posts: 34
As in java Event Handler is registered with the component that implements the corresponding Interface(ActionListener, ItemListener) and the respective methods ( actionPerformed(), itemStateChanged() ) are to be implemented , Let someone Please help to explain the same in Ajax ?
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

AJAX is used to give asynchronous call, without blocking the UI thread. There is no event handling support from AJAX as far as I know. You need to use HTML event handling.

For Example,

For a HTML Button element, on onClick event, you can register your java script method. In that method, you can give a AJAX call.


hth,


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

"Masilamani A",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

P.S. Accounts with invalid display names are not eligible for the book promotion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How is the Event Handling in Ajax ?