Hi Ram,

> I am using Prototype 1.5.

First off, Prototype 1.5 is very out of date.  You really want to
start using 1.6.0.3 and, soon, 1.6.1 for continued browser
compatibility.

> I think I have to extend the Ajax.Request.prototype so that i can add
> "on200" method to it. (From the Prototype code is saw it looks for
> 'on'+status code)

You don't have to extend any prototypes (at least not with 1.6+), just
specify an onSuccess handler:
http://prototypejs.org/api/ajax/options

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On Jun 19, 10:17 am, Ram Kumar Hariharan <coolramku...@gmail.com>
wrote:
> Hi all,
>
> I am using Prototype 1.5. I want my JS to invoke some function everytime a
> successful response is received.
>
> I think I have to extend the Ajax.Request.prototype so that i can add
> "on200" method to it. (From the Prototype code is saw it looks for
> 'on'+status code)
> Is this approach correct? Can you give me pointers on how to proceed with
> this?
> --
> Ram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to