[Proto-Scripty] Re: How to extend Element method and apply it to all the elements

2009-05-01 Thread ryan
I figured it out Element.addMethods({getOffsetParent : function(element) { if (element.offsetParent) return $(element.offsetParent); if (element == document.body) return $(element); while ((element = element.parentNode) element != document.body element != document) if

[Proto-Scripty] Re: How to extend Element method and apply it to all the elements

2009-05-01 Thread soumya behera
Thanks ryan But i want it the ajax with jsp application.So can u plz suggest? On 5/1/09, ryan ryansu...@gmail.com wrote: I figured it out Element.addMethods({getOffsetParent : function(element) { if (element.offsetParent) return $(element.offsetParent); if (element ==