Hi there, Does anyone now if Dojo can be used with Rails atm ? I am trying to include the Dojo Rich Text Editor in a rhtml with no success.
It should work. On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi there, > > Does anyone now if Dojo can be used with Rails atm ? I am trying to > include the Dojo Rich Text Editor in a rhtml with no success. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
the following does not work in an .rhtml maybe i am doing something wrong <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Documento sin título</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript" src="file:///C|/dojo_svn/dojo.js"></script> <script language="javascript" type="text/javascript"> dojo.require("dojo.widget.Editor"); </script> </head> <body> <h1>New document</h1> <div class="dojo-Editor">some text</div> </body> </html> On 11/29/05, Kyle Maxwell <kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org> wrote:> It should work. > > On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi there, > > > > Does anyone now if Dojo can be used with Rails atm ? I am trying to > > include the Dojo Rich Text Editor in a rhtml with no success. > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
When you change it to an RHTML file, you need to change the src attribute of your <script> tag to something served from the server, even if it''s just localhost. Josh On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the following does not work in an .rhtml maybe i am doing something wrong > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <head> > <title>Documento sin título</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > <script type="text/javascript" src="file:///C|/dojo_svn/dojo.js"></script> > <script language="javascript" type="text/javascript"> > dojo.require("dojo.widget.Editor"); > </script> > </head> > <body> > <h1>New document</h1> > <div class="dojo-Editor">some text</div> > </body> > </html> > > On 11/29/05, Kyle Maxwell <kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org> wrote: > > It should work. > > > > On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi there, > > > > > > Does anyone now if Dojo can be used with Rails atm ? I am trying to > > > include the Dojo Rich Text Editor in a rhtml with no success. > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Has anyone gotten dojo to work? especially the rich text editor? I downloaded the kitchen sink from the nightly build and tried using the textbox call as well as the div call that they mention on the site but I can''t get the editor to appear at all. I have the following calls in my header for javascripts: <%= javascript_include_tag ''prototype'', ''behaviour'', ''scriptaculous'', ''prototype-ex'', ''date-picker'' %> <script src="http://localhost:3007/javascripts/dojo.js" type="text/ javascript"></script> <script type="text/javascript">dojo.require("dojo.widget.Editor");</ script> But ca not for the life of me get the editor to appear. Andrew On Nov 29, 2005, at 2:04 PM, Josh Charles wrote:> When you change it to an RHTML file, you need to change the src > attribute of your <script> tag to something served from the server, > even if it''s just localhost. > > Josh > > > On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> the following does not work in an .rhtml maybe i am doing >> something wrong >> >> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >> "http://www.w3.org/TR/html4/loose.dtd"> >> <html> >> <head> >> <title>Documento sin título</title> >> <meta http-equiv="Content-Type" content="text/html; >> charset=iso-8859-1"> >> <script type="text/javascript" src="file:///C|/dojo_svn/dojo.js"></ >> script> >> <script language="javascript" type="text/javascript"> >> dojo.require("dojo.widget.Editor"); >> </script> >> </head> >> <body> >> <h1>New document</h1> >> <div class="dojo-Editor">some text</div> >> </body> >> </html> >> >> On 11/29/05, Kyle Maxwell <kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org> wrote: >>> It should work. >>> >>> On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>>> Hi there, >>>> >>>> Does anyone now if Dojo can be used with Rails atm ? I am trying to >>>> include the Dojo Rich Text Editor in a rhtml with no success. >>>> _______________________________________________ >>>> Rails mailing list >>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>>> >>> _______________________________________________ >>> Rails mailing list >>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Yes, I did as Josh told me, and it worked for the the rt editor. As long as the src attribute of the script tag points to a file served by the server, it should work. On 11/30/05, Andrew Filipowski <a.filipowski-ee4meeAH724@public.gmane.org> wrote:> Has anyone gotten dojo to work? especially the rich text editor? I > downloaded the kitchen sink from the nightly build and tried using the > textbox call as well as the div call that they mention on the site but I > can''t get the editor to appear at all. > > I have the following calls in my header for javascripts: > > <%= javascript_include_tag ''prototype'', ''behaviour'', ''scriptaculous'', > ''prototype-ex'', ''date-picker'' %> > <script src="http://localhost:3007/javascripts/dojo.js" > type="text/javascript"></script> > <script type="text/javascript">dojo.require("dojo.widget.Editor");</script> > > > > But ca not for the life of me get the editor to appear. > > Andrew > > > On Nov 29, 2005, at 2:04 PM, Josh Charles wrote: > > When you change it to an RHTML file, you need to change the src > attribute of your <script> tag to something served from the server, > even if it''s just localhost. > > Josh > > > On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > the following does not work in an .rhtml maybe i am doing something wrong > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html> > <head> > <title>Documento sin título</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > <script type="text/javascript" src="file:///C|/dojo_svn/dojo.js"></script> > <script language="javascript" type="text/javascript"> > dojo.require("dojo.widget.Editor"); > </script> > </head> > <body> > <h1>New document</h1> > <div class="dojo-Editor">some text</div> > </body> > </html> > > On 11/29/05, Kyle Maxwell <kyle-FOSOgQihYpQjo0HpFSRKWA@public.gmane.org> wrote: > It should work. > > On 11/29/05, sergi borras <sergiborras-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi there, > > Does anyone now if Dojo can be used with Rails atm ? I am trying to > include the Dojo Rich Text Editor in a rhtml with no success. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >