Hi,

I don't think it's possible to help with this without a lot more
information. What's `editorDocument`, for instance? You said that the
failure occurs in `setStyle`; so you're going to need to show us your
call to `setStyle` at the very least (or your call to whatever else in
Prototype called `setStyle`). I don't think the code you've shown
calls Prototype at all, although without knowing what `editorDocument`
is...
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Jul 20, 1:34 am, Gindi Bar Yahav <[email protected]> wrote:
> Hey.
> I have a question that I'll be glad if you can help me.
>
> I'm building a WYSIWYG editor based on prototype and I want to extend
> prototype to the frame itself.
>
> I've written this code
>
> var htmlContent                         =       "";
>                                 htmlContent                                   
>   =       '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>' + "\n"
>                                                                               
>           +       "<html>\n"
>                                                                               
>           +       "  <head>\n"
>                                                                               
>           +       '       <script type="text/javascript" language="javascript"
> src="http://localhost/PearCMS2/Public/JavaScripts/ThirdParty/
> prototype.js"></script>' + "\n"
>                                                                               
>           +       ieCompatible
>                                                                               
>           +       "  </head>\n"
>                                                                               
>           +       "  <body>\n"
>                                                                               
>           +       content
>                                                                               
>           +       "  </body>\n"
>                                                                               
>           +       "</html>";
>
>                                 //      Write it
>                                 this.editorDocument.open('text/html', 
> 'replace');
>                                 this.editorDocument.write(htmlContent);
>                                 this.editorDocument.close();
>
> but for some reason, when I'm attaching the prototype.js file it gives
> me an error with FF - element can not be null, in the setStyle
> function.
>
> in both IE7,8 and safari it works.
>
> Hope you can help me.
> thanks! Yahav.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to