Thanks, will try soon ;-)

On Jul 1, 11:54 pm, kangax <[EMAIL PROTECTED]> wrote:
> This should work in browsers which expose "prototype" of host objects
> (e.g. any recent gecko, webkit, etc.):
>
> var r = document.createRange();
> var proto = r.startContainer.constructor.prototype;
>
> for (var prop in Element.Methods) {
>   if (!Object.isFunction(Element.Methods[prop])) continue;
>   proto[prop] = Element.Methods[prop].methodize();
>
> }
>
> -- kangax
>
> On Jul 1, 11:38 am, AlannY <[EMAIL PROTECTED]> wrote:
>
> > Yes, it's an element
>
> > var container = range.startContainer;
> > alert(container.tagName); // OK
>
> > This elements from iframe, where Prototype is not loaded, so, I want
> > to extend element manually ;-)
>
> > On Jul 1, 6:04 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote:
>
> > > What is range.startContainer?  Are you sure it's an element?
>
> > > -Fred
>
> > > On Tue, Jul 1, 2008 at 8:50 AM, AlannY <[EMAIL PROTECTED]> wrote:
>
> > > > Hi there. I have very specific problem with Prototype.
>
> > > > I'm getting selection of document and make a range from it. It's
> > > > simple. But I'm receiving not extended elements from
> > > > <range.startContainer>. Ok. That's fine. I would like to add
> > > > prototype's functions to this element.
>
> > > --
> > > Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to