aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Ajax callback methds 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 callback methds" Watch "Ajax callback methds" New topic
Author

Ajax callback methds

marlajee Borstone
Ranch Hand

Joined: Jun 26, 2008
Posts: 35
Can any one please help me to know the what are Ajax callback methods ?

Dhaansumaal
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61222
    
  66

Perhaps this article will be helpful.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ramesh Kumar Swarnkar
Ranch Hand

Joined: Sep 15, 2003
Posts: 84
The link above shows the AJAX description and really a good page for AJAX.
But to be precise about the question kept my Dhaansumaal, I think these are the callback methods in AJAX:

processRequest
req.open(-,-,-);
req.send(-);

[ July 23, 2008: Message edited by: Ramesh Kumar Swarnkar ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61222
    
  66

No, those are some of the methods of XHR. They are not callback methods.
marlajee Borstone
Ranch Hand

Joined: Jun 26, 2008
Posts: 35
Hi Bear,
I request to please help me to know the exact names of callback methods used in AJAX !!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61222
    
  66

Callback methods don't have specific names. They can be named whatever you want, or they can even be anonymous.

The only callback the XHR defines is whatever function's reference is stored in its
onreadystatechange property.

For example, you could define a fuction named fred and use it as the callback:

or (more commonly) you can use an anonymous function:
[ July 26, 2008: Message edited by: Bear Bibeault ]
Ramesh Kumar Swarnkar
Ranch Hand

Joined: Sep 15, 2003
Posts: 84
[Thread hi-jack removed. Please ask new questions in new topics]
[ July 30, 2008: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax callback methds