Ruan, I think you're running into a cross-frame issue combined with a
scoping issue (this).

I had a similar one a while back when I was doing a file browser with a
popup window. (do a search)

My suggestion is to include prototype.js in the iframe and have a method in
the iframe that you call from the parent document to do your bidding.

Gareth



On Feb 5, 2008 11:31 PM, Rauan Maemirov <[EMAIL PROTECTED]> wrote:

>
> My code is:
>
> var getDoc = (Prototype.Browser.Gecko) ? $('wysiwyg' +
> this.textareaID).contentDocument : $('wysiwyg' +
> this.textareaID).document;
>
> getDoc.body.setStyle({ fontSize: '13px', fontFamily: 'Verdana, Arial,
> Helvetica, sans-serif' });
>
>
> If I use
> getDoc.body.style.fontSize = "13px";
> getDoc.body.style.fontFamily = "Verdana, Arial, Helvetica, sans-
> serif";
>
> it works fine.
>
> update() also doesn't work.
> >
>

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