Hi Normunds

I posted about this in another thread just a second ago regarding setStyle
not working on an iframe.

Search my file browser thread a few months back. I ran into a similar
problem and never found a workaround and used a lightbox instead.

Perhaps the core guys could shed some light?

Gareth

On Feb 6, 2008 12:16 AM, normunds <[EMAIL PROTECTED]> wrote:

>
> For example I open a window, write some html:
>        var win = window.open("", "dlg", "width=500,height=500");
>        var doc = win.document;
>        with (doc) {
>                write("<html>");
>                write("<body><p id='start'></p></body>");
>                write("</html>");
>                close();
>        }
>
> And then I want to insert some objects from the current document. For
> all I can tell, the elements in popup cannot get extended (I'm using
> prototype 1.6.0.2). Neither automatically (as a return value), not
> explicitly:
>        var p = Element.extend(doc.getElementById("start")); // this does
> not
> extend the element, right?
>
>        Element.insert(p, $('message')); // works; "message" is an element
> in the current doc
>        p.insert ($('message')); // does not work
>
> Is there a workaround - a way to extend the elements from the pop-up?
> Referencing of the prototype.js also in the pop-up window does not
> seem to make any difference.
>
> Are there any other things that does not work when working with
> several windows?
>
> Thanks, Normunds
>
>
>
>
> >
>

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