I may be dense, but while attempting to implement effects using scriptaculous, the ''effects'' or ''effect'' is not recognized. I even pasted in code from the web site and received the same error. I''ve triple checked spelling other than the ''paste'' and location ot the files as well as the script director in the head segment. I can''t find the error. It must be something simple I''m missing...
would you be able to post the code you are trying? On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote:> I may be dense, but while attempting to implement effects using > scriptaculous, the ''effects'' or ''effect'' is not recognized. I even > pasted in code from the web site and received the same error. I''ve > triple checked spelling other than the ''paste'' and location ot the files > as well as the script director in the head segment. I can''t find the > error. It must be something simple I''m missing... > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Yes - here is the header link to javascript directories - this is accurate; <script language="JavaScript" src="/javascript/prototype.js" type="text/javascript"></script> <script language="Javascript" src="/javascript/scriptaculous.js" type="text/javascript"></script> <script type="text/javascript" src="/face.js"></script> <style> This is my attempt to use scriptaculous: <div id="ulft"> <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click to toggle</a> <script type="text/javascript">effect.toggle(''ulft'',''appear'');</script> This text is the content used for experimenting with the scriptaculous javascript prototype and ajax-rails components. Most of these scripts are visual effects on divs within a web page</div> </div> This is the code cut and pasted from the scriptaculous site: </div> <p> <a href="#" onclick="Effects.toggle(''demo-element-blind'',''blind''); return false">Click to toggle w/ blind...</a> <div id="demo-element-blind" style="height:200px;width:300px;background-color:#ddd"><div> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div></div> </p> <h2>Slide</h2> <p> <a href="#" onclick="Effect.toggle(''demo-element-slide'',''slide''); return false">Click to toggle w/ slide...</a> <div id="demo-element-slide" style="height:200px;width:300px;background-color:#ddd"><div> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div></div> </p> </div> The error message states, "effect is undefined" Thanks for any suggestions or help you may offer... Jesse Brian Dinsmore wrote:> would you be able to post the code you are trying? > > On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote: >> I may be dense, but while attempting to implement effects using >> scriptaculous, the ''effects'' or ''effect'' is not recognized. I even >> pasted in code from the web site and received the same error. I''ve >> triple checked spelling other than the ''paste'' and location ot the files >> as well as the script director in the head segment. I can''t find the >> error. It must be something simple I''m missing... >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I think this <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click to toggle</a> Should be like this: <a href="#" onclick="Effect.toggle(''ulft'',''appear'');">Click to toggle</a> -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jessie Sent: Monday, June 05, 2006 4:27 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] scriptaculous problem Yes - here is the header link to javascript directories - this is accurate; <script language="JavaScript" src="/javascript/prototype.js" type="text/javascript"></script> <script language="Javascript" src="/javascript/scriptaculous.js" type="text/javascript"></script> <script type="text/javascript" src="/face.js"></script> <style> This is my attempt to use scriptaculous: <div id="ulft"> <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click to toggle</a> <script type="text/javascript">effect.toggle(''ulft'',''appear'');</script> This text is the content used for experimenting with the scriptaculous javascript prototype and ajax-rails components. Most of these scripts are visual effects on divs within a web page</div> </div> This is the code cut and pasted from the scriptaculous site: </div> <p> <a href="#" onclick="Effects.toggle(''demo-element-blind'',''blind''); return false">Click to toggle w/ blind...</a> <div id="demo-element-blind" style="height:200px;width:300px;background-color:#ddd"><div> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div></div> </p> <h2>Slide</h2> <p> <a href="#" onclick="Effect.toggle(''demo-element-slide'',''slide''); return false">Click to toggle w/ slide...</a> <div id="demo-element-slide" style="height:200px;width:300px;background-color:#ddd"><div> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div></div> </p> </div> The error message states, "effect is undefined" Thanks for any suggestions or help you may offer... Jesse Brian Dinsmore wrote:> would you be able to post the code you are trying? > > On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote: >> I may be dense, but while attempting to implement effects using >> scriptaculous, the ''effects'' or ''effect'' is not recognized. I even >> pasted in code from the web site and received the same error. I''ve >> triple checked spelling other than the ''paste'' and location ot the files >> as well as the script director in the head segment. I can''t find the >> error. It must be something simple I''m missing... >> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Effect.toggle, not effect.toggle, not Effects.toggle Programming is case-sensitive.> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jessie > Sent: Monday, June 05, 2006 8:27 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails-spinoffs] scriptaculous problem > > Yes - > > here is the header link to javascript directories - this is accurate; > > > <script language="JavaScript" src="/javascript/prototype.js" > type="text/javascript"></script> > <script language="Javascript" src="/javascript/scriptaculous.js" > type="text/javascript"></script> > <script type="text/javascript" src="/face.js"></script> > <style> > > This is my attempt to use scriptaculous: > > <div id="ulft"> > <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click totoggle</a>> <scripttype="text/javascript">effect.toggle(''ulft'',''appear'');</script>> This text is the content used for experimenting with the scriptaculous > javascript prototype and ajax-rails components. Most of these scripts > are visual effects on divs within a web page</div> > > </div> > > > This is the code cut and pasted from the scriptaculous site: > > </div> > <p> > <a href="#" onclick="Effects.toggle(''demo-element-blind'',''blind''); > return false">Click to toggle w/ blind...</a> > <div id="demo-element-blind" > style="height:200px;width:300px;background-color:#ddd"><div> > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad > minim veniam, quis nostrud exercitation ullamco laboris nisi utaliquip> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in > voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur > sint occaecat cupidatat non proident, sunt in culpa qui officiadeserunt> mollit anim id est laborum. > </div></div> > </p> > > > <h2>Slide</h2> > > > <p> > > <a href="#" onclick="Effect.toggle(''demo-element-slide'',''slide'');return> false">Click to toggle w/ slide...</a> > <div id="demo-element-slide" > style="height:200px;width:300px;background-color:#ddd"><div> > Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad > minim veniam, quis nostrud exercitation ullamco laboris nisi utaliquip> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in > voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur > sint occaecat cupidatat non proident, sunt in culpa qui officiadeserunt> mollit anim id est laborum. > </div></div> > </p> > </div> > > > The error message states, "effect is undefined" > > Thanks for any suggestions or help you may offer... > > Jesse > > > Brian Dinsmore wrote: > > would you be able to post the code you are trying? > > > > On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote: > >> I may be dense, but while attempting to implement effects using > >> scriptaculous, the ''effects'' or ''effect'' is not recognized. I even > >> pasted in code from the web site and received the same error. I''ve > >> triple checked spelling other than the ''paste'' and location ot the > files > >> as well as the script director in the head segment. I can''t findthe> >> error. It must be something simple I''m missing... > >> > >> _______________________________________________ > >> Rails-spinoffs mailing list > >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > >> > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Changes equal to your recommendation in each circumstance accomplish the same error message! Jesse Gregory Hill wrote:> Effect.toggle, not effect.toggle, not Effects.toggle > > Programming is case-sensitive. > > > >> -----Original Message----- >> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> > [mailto:rails-spinoffs- > >> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jessie >> Sent: Monday, June 05, 2006 8:27 AM >> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> Subject: Re: [Rails-spinoffs] scriptaculous problem >> >> Yes - >> >> here is the header link to javascript directories - this is accurate; >> >> >> <script language="JavaScript" src="/javascript/prototype.js" >> type="text/javascript"></script> >> <script language="Javascript" src="/javascript/scriptaculous.js" >> type="text/javascript"></script> >> <script type="text/javascript" src="/face.js"></script> >> <style> >> >> This is my attempt to use scriptaculous: >> >> <div id="ulft"> >> <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click to >> > toggle</a> > >> <script >> > type="text/javascript">effect.toggle(''ulft'',''appear'');</script> > >> This text is the content used for experimenting with the scriptaculous >> javascript prototype and ajax-rails components. Most of these scripts >> are visual effects on divs within a web page</div> >> >> </div> >> >> >> This is the code cut and pasted from the scriptaculous site: >> >> </div> >> <p> >> <a href="#" onclick="Effects.toggle(''demo-element-blind'',''blind''); >> return false">Click to toggle w/ blind...</a> >> <div id="demo-element-blind" >> style="height:200px;width:300px;background-color:#ddd"><div> >> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do >> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad >> minim veniam, quis nostrud exercitation ullamco laboris nisi ut >> > aliquip > >> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in >> voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur >> sint occaecat cupidatat non proident, sunt in culpa qui officia >> > deserunt > >> mollit anim id est laborum. >> </div></div> >> </p> >> >> >> <h2>Slide</h2> >> >> >> <p> >> >> <a href="#" onclick="Effect.toggle(''demo-element-slide'',''slide''); >> > return > >> false">Click to toggle w/ slide...</a> >> <div id="demo-element-slide" >> style="height:200px;width:300px;background-color:#ddd"><div> >> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do >> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad >> minim veniam, quis nostrud exercitation ullamco laboris nisi ut >> > aliquip > >> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in >> voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur >> sint occaecat cupidatat non proident, sunt in culpa qui officia >> > deserunt > >> mollit anim id est laborum. >> </div></div> >> </p> >> </div> >> >> >> The error message states, "effect is undefined" >> >> Thanks for any suggestions or help you may offer... >> >> Jesse >> >> >> Brian Dinsmore wrote: >> >>> would you be able to post the code you are trying? >>> >>> On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote: >>> >>>> I may be dense, but while attempting to implement effects using >>>> scriptaculous, the ''effects'' or ''effect'' is not recognized. I even >>>> pasted in code from the web site and received the same error. I''ve >>>> triple checked spelling other than the ''paste'' and location ot the >>>> >> files >> >>>> as well as the script director in the head segment. I can''t find >>>> > the > >>>> error. It must be something simple I''m missing... >>>> >>>> _______________________________________________ >>>> Rails-spinoffs mailing list >>>> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >>>> >>>> >>> _______________________________________________ >>> Rails-spinoffs mailing list >>> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >>> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
When I move scriptaculous .js files to the local directory it works... Gregory Hill wrote:> Effect.toggle, not effect.toggle, not Effects.toggle > > Programming is case-sensitive. > > > >> -----Original Message----- >> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> > [mailto:rails-spinoffs- > >> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jessie >> Sent: Monday, June 05, 2006 8:27 AM >> To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> Subject: Re: [Rails-spinoffs] scriptaculous problem >> >> Yes - >> >> here is the header link to javascript directories - this is accurate; >> >> >> <script language="JavaScript" src="/javascript/prototype.js" >> type="text/javascript"></script> >> <script language="Javascript" src="/javascript/scriptaculous.js" >> type="text/javascript"></script> >> <script type="text/javascript" src="/face.js"></script> >> <style> >> >> This is my attempt to use scriptaculous: >> >> <div id="ulft"> >> <a href="#" onclick="effect.toggle(''ulft'',''appear'');">Click to >> > toggle</a> > >> <script >> > type="text/javascript">effect.toggle(''ulft'',''appear'');</script> > >> This text is the content used for experimenting with the scriptaculous >> javascript prototype and ajax-rails components. Most of these scripts >> are visual effects on divs within a web page</div> >> >> </div> >> >> >> This is the code cut and pasted from the scriptaculous site: >> >> </div> >> <p> >> <a href="#" onclick="Effects.toggle(''demo-element-blind'',''blind''); >> return false">Click to toggle w/ blind...</a> >> <div id="demo-element-blind" >> style="height:200px;width:300px;background-color:#ddd"><div> >> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do >> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad >> minim veniam, quis nostrud exercitation ullamco laboris nisi ut >> > aliquip > >> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in >> voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur >> sint occaecat cupidatat non proident, sunt in culpa qui officia >> > deserunt > >> mollit anim id est laborum. >> </div></div> >> </p> >> >> >> <h2>Slide</h2> >> >> >> <p> >> >> <a href="#" onclick="Effect.toggle(''demo-element-slide'',''slide''); >> > return > >> false">Click to toggle w/ slide...</a> >> <div id="demo-element-slide" >> style="height:200px;width:300px;background-color:#ddd"><div> >> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do >> eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad >> minim veniam, quis nostrud exercitation ullamco laboris nisi ut >> > aliquip > >> ex ea commodo consequat. Duis aute irure dolor in reprehenderit in >> voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur >> sint occaecat cupidatat non proident, sunt in culpa qui officia >> > deserunt > >> mollit anim id est laborum. >> </div></div> >> </p> >> </div> >> >> >> The error message states, "effect is undefined" >> >> Thanks for any suggestions or help you may offer... >> >> Jesse >> >> >> Brian Dinsmore wrote: >> >>> would you be able to post the code you are trying? >>> >>> On 6/3/06, Jessie <jesse-e78ukRiaTkxCvBQ4VRQNtEEOCMrvLtNR@public.gmane.org> wrote: >>> >>>> I may be dense, but while attempting to implement effects using >>>> scriptaculous, the ''effects'' or ''effect'' is not recognized. I even >>>> pasted in code from the web site and received the same error. I''ve >>>> triple checked spelling other than the ''paste'' and location ot the >>>> >> files >> >>>> as well as the script director in the head segment. I can''t find >>>> > the > >>>> error. It must be something simple I''m missing... >>>> >>>> _______________________________________________ >>>> Rails-spinoffs mailing list >>>> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >>>> >>>> >>> _______________________________________________ >>> Rails-spinoffs mailing list >>> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >>> >> _______________________________________________ >> Rails-spinoffs mailing list >> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >> > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Sorry for the some what off topic question, but I was looking for some opinions on rich text editors. I currently use FCKeditor in my CMS system, and I quite like it, but was wondering if there where any good editors that used prototype. Thanks in advance! ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http:// www.incontrolsolutions.com _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I''m a registered user of FCK as well. I do like it, but it''s a tad on the complex side. That said, it has nice server integration with several backends. I''ve been following the ruby bindings passively. I''ve also been looking at TinyMCE as a more lightweight alternative that supports Safari. Anyhow, I''m not familiar with any prototype based editors. Here''s the list I refer to; the only thing missing is a last updated stamp. http://www.geniisoft.com/showcase.nsf/WebEditors Pete ----- Original Message ----- From: Alex Duffield To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Sent: Monday, June 05, 2006 2:04 PM Subject: [Rails-spinoffs] rich text editors Sorry for the some what off topic question, but I was looking for some opinions on rich text editors. I currently use FCKeditor in my CMS system, and I quite like it, but was wondering if there where any good editors that used prototype. Thanks in advance! ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com ------------------------------------------------------------------------------ _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Great list thanks. Ya, I dont use any of the backend stuff in FCKeditor, in favor of my own image/media manager, so I find it a "little" bloated TinyMCE looks like the best lightweight option out there. Cheers. ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http:// www.incontrolsolutions.com On 5-Jun-06, at 11:12 AM, Pete Forde wrote:> I''m a registered user of FCK as well. I do like it, but it''s a tad > on the complex side. That said, it has nice server integration with > several backends. I''ve been following the ruby bindings passively. > > I''ve also been looking at TinyMCE as a more lightweight alternative > that supports Safari. > > Anyhow, I''m not familiar with any prototype based editors. Here''s > the list I refer to; the only thing missing is a last updated stamp. > > http://www.geniisoft.com/showcase.nsf/WebEditors > > Pete > ----- Original Message ----- > From: Alex Duffield > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Sent: Monday, June 05, 2006 2:04 PM > Subject: [Rails-spinoffs] rich text editors > > Sorry for the some what off topic question, but I was looking for > some opinions on rich text editors. > > I currently use FCKeditor in my CMS system, and I quite like it, > but was wondering if there where any good editors that used prototype. > > Thanks in advance! > ______________________________________________________________________ > Alex Duffield . Principal . InControl Solutions . http:// > www.incontrolsolutions.com > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Alex Duffield wrote:> Sorry for the some what off topic question, but I was looking for some > opinions on rich text editors.I have used the Dynarch HTMLArea rich text editor alongside of prototype. I had a hack a bit of code because it uses "for...in..." to iterate over arrays, but once converted to "for(;;)" it works great. Eric
I went thru this recently for a project - ie trying to find a text editor compatible w/ Prototype/Scriptaculous. I first tried Dojo Editor/Editor2. I had some issues which I don''t thing were related to Prototype/Dojo incompatibility. The widget model they have is very powerful, but it was probably overkill for just dropping in a text editor. So from there I went to TinyMCE, which has worked fine. It has incompatibilities with earlier versions of P/S (the 1.4 version I think?) - but that was easily fixed by having tinymce.js load first. It only works partially in Safari, but I think you''ll find that true of all the text widgets out there, or at least all the open source ones. FCKEditor seems to have a lot of complaints for poorly written code, so I skipped it. Also, a review of four open source options, including tiny and fck : http://iqcontent.com/publications/features/article_73/. - Rob On 6/5/06, Alex Duffield <alex-GLL9njBnHiGqPKKiFzS5XxZCeNDtXRbv@public.gmane.org> wrote:> > Sorry for the some what off topic question, but I was looking for some > opinions on rich text editors. > > I currently use FCKeditor in my CMS system, and I quite like it, but was > wondering if there where any good editors that used prototype. > > Thanks in advance! > > > ______________________________________________________________________ > > Alex Duffield . Principal . InControl Solutions . > http://www.incontrolsolutions.com > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >-- http://www.robsanheim.com http://www.seekingalpha.com http://www.ajaxian.com
The following works: <body> <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click to display</a> <div class="example" id="mydiv" style="display: none;"> <h1>My Div</h1> </div> </body> (style is inline) but the following does not: <head> ... <style> #mydiv { display: none; } </style> </head> <body> <body> <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click to display</a> <div id="mydiv"> <h1>My Div</h1> </div> </body> Am I doing something wrong?
As the documentation (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states: "Effect.Appear Make an element appear. If the element was previously set to display:none; inside the style attribute of the element, the effect will automatically show the element. This means that it must be places under the style attribute of an object, and not in the CSS in the head of the document or a linked file." So no, you don''t do anything wromng, but I agree, it would be rather nice not having to add that attribute. /Glenn On 6/7/06, Bryce Fischer <bryce-bKrBQupY3dcvEkJ3hUJ36NBPR1lH4CV8@public.gmane.org> wrote:> The following works: > > <body> > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click to display</a> > <div class="example" id="mydiv" style="display: none;"> > <h1>My Div</h1> > </div> > </body> > > (style is inline) > > but the following does not: > > <head> > ... > <style> > #mydiv { > display: none; > } > </style> > </head> > <body> > <body> > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click to display</a> > <div id="mydiv"> > <h1>My Div</h1> > </div> > </body> > > Am I doing something wrong? > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
It''s a browser limitation. If you set display: none in the css, when you do: $(''id'').style.display = ''''; It doesn''t revert the value to the default of block, inline, list-item, or whatever. It''s like it forgets it magically. Would be nice if every item had a ''defaultDisplay'' or something, so you could say: $(''id'').style.display = $(''id'').style.defaultDisplay; To revert it back to the default, but then you''d have problems when dealing with altered display attributes like an inline element set to display: block. When you wanted to make it reappear, it would go back to inline instead of block. So... yeah, there''s nothing you can do about it. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Glenn Nilsson > Sent: Wednesday, June 07, 2006 3:47 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: Re: [Rails-spinoffs] Scriptaculous Problem > > As the documentation > (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states: > > "Effect.Appear > > Make an element appear. If the element was previously set to > display:none; inside the style attribute of the element, the effect > will automatically show the element. This means that it must be places > under the style attribute of an object, and not in the CSS in the head > of the document or a linked file." > > So no, you don''t do anything wromng, but I agree, it would be rather > nice not having to add that attribute. > > /Glenn > > On 6/7/06, Bryce Fischer <bryce-bKrBQupY3dcvEkJ3hUJ36NBPR1lH4CV8@public.gmane.org> wrote: > > The following works: > > > > <body> > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Clickto> display</a> > > <div class="example" id="mydiv" style="display: none;"> > > <h1>My Div</h1> > > </div> > > </body> > > > > (style is inline) > > > > but the following does not: > > > > <head> > > ... > > <style> > > #mydiv { > > display: none; > > } > > </style> > > </head> > > <body> > > <body> > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Clickto> display</a> > > <div id="mydiv"> > > <h1>My Div</h1> > > </div> > > </body> > > > > Am I doing something wrong? > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thanks for the responses (both Greg and Glenn). I was thinking I was having problems getting mail from this list, but realized that I already had a rails rule in Gmail, and it was bypassing my inbox. I found that if I hide the element in the onload it will work too. Not sure what method I''m going to use, but I''ll keep experimenting. Luckily, I''m sill experimenting, and not working on production yet... Thanks again (and especially to the makers of Prototype and Scriptaculous) On 6/7/06, Gregory Hill <Gregory_Hill-l9nu40+TWxQ@public.gmane.org> wrote:> It''s a browser limitation. If you set display: none in the css, when > you do: > > $(''id'').style.display = ''''; > > It doesn''t revert the value to the default of block, inline, list-item, > or whatever. It''s like it forgets it magically. Would be nice if every > item had a ''defaultDisplay'' or something, so you could say: > > $(''id'').style.display = $(''id'').style.defaultDisplay; > > To revert it back to the default, but then you''d have problems when > dealing with altered display attributes like an inline element set to > display: block. When you wanted to make it reappear, it would go back > to inline instead of block. > > So... yeah, there''s nothing you can do about it. > > Greg > > > -----Original Message----- > > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs- > > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Glenn Nilsson > > Sent: Wednesday, June 07, 2006 3:47 PM > > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > Subject: Re: [Rails-spinoffs] Scriptaculous Problem > > > > As the documentation > > (http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear) states: > > > > "Effect.Appear > > > > Make an element appear. If the element was previously set to > > display:none; inside the style attribute of the element, the effect > > will automatically show the element. This means that it must be places > > under the style attribute of an object, and not in the CSS in the head > > of the document or a linked file." > > > > So no, you don''t do anything wromng, but I agree, it would be rather > > nice not having to add that attribute. > > > > /Glenn > > > > On 6/7/06, Bryce Fischer <bryce-bKrBQupY3dcvEkJ3hUJ36NBPR1lH4CV8@public.gmane.org> wrote: > > > The following works: > > > > > > <body> > > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click > to > > display</a> > > > <div class="example" id="mydiv" style="display: none;"> > > > <h1>My Div</h1> > > > </div> > > > </body> > > > > > > (style is inline) > > > > > > but the following does not: > > > > > > <head> > > > ... > > > <style> > > > #mydiv { > > > display: none; > > > } > > > </style> > > > </head> > > > <body> > > > <body> > > > <a href="#" onclick="new Effect.Appear($(''mydiv''));">Click > to > > display</a> > > > <div id="mydiv"> > > > <h1>My Div</h1> > > > </div> > > > </body> > > > > > > Am I doing something wrong? > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >