Kangax approach seems to be ideal for the scenario but I think you'll
need to extend the cloned object before invoking wrap.
On Feb 4, 7:09 am, ChrisT <[EMAIL PROTECTED]> wrote:
> It's not a question of examining it, I need to insert it into an
> function (defined in external library) that only accepts a string (not
> elements). For the moment, I've built up the HTML string by hand
> rather than using new Element("p",....).update(...).
> It's not I big problem (and is probably quicker), but just assumed I
> was missing something.
>
> Cheers
> Chris
>
> On 4 Feb, 12:24, "Deniz Adrian" <[EMAIL PROTECTED]> wrote:
>
> > You could, for example, use Firebug to examine the generated DOM
>
> > On Feb 4, 2008 12:52 PM, ChrisT <[EMAIL PROTECTED]> wrote:
>
> > > Simple question, which I should probably know the answer to, but how
> > > do I convert a prototype element to the raw HTML?
>
> > > Cheers
>
> > > Chris
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---