This is a generic Javascript question--rather than asking on this  
list (one specific to the Prototype and Scriptaculous libraries), you  
should do a couple of things first:
- Google your question. (GIYF)
- Ask on a Javascript help forum/list

The following links should make your search a bit easier:
http://www.google.com/search?q=javascript%20frames
http://www.quirksmode.org/js/frameintro.html

Both frame1 and frame2 should be able to access each other's content  
"automagically," using the pre-populated variables self, parent, and  
top.

If you've named your frame "frame1", some variation of this should  
probably work:
var tmp = top.frame1.document.body.innerHTML;

Works for iframes too.


TAG


On May 17, 2007, at 6:20 PM, Trinath wrote:

>
> I have to develop a web page using frames and JavaScript.
>  In that page I need to get the entire HTML code of  frame1 using
> JavaScript into a variable in frame 2. Both frames belong to the
> same web page.
> How can I get that done?
> Please answer. Thank you
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to