You could try document.documentElement.innerHTML. This will return
<head>....</head><body>...</body>. I know that some
properties of
document.documentElement in IE6 only work in standards mode, so that
*may* be a problem, but I don''t have IE to test here.
Best,
-Nicolas
On Dec 30, 2007 3:53 PM, matte
<mert.hurturk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi everyone!
>
> Is there a way to get whole html source as a string variable in
> prototype? I couldn''t find a way to do this. Please help.
>
> Thanks.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---