When I say hang, I mean the browsers spinner keeps spinning and Firefox''s info bar at the bottom says "Transfering data from ...... " I''m just including the js like this: <script src="/js/prototype.js" type="text/javascript"></script> <script src="/js/scriptaculous.js" type="text/javascript"></script> which I cribbed from the demo pages anyway. If I remove the 2nd line, and just have prototype loaded, the page loads Ok. I''m only interested in the Blind[Up|Down] functions, so I''ve also tried : <script src="/js/scriptaculous.js?load=effects" type="text/ javascript"></script> but the same thing happens. I''m using v1.6.1 of scriptaculous, and the prototype version that comes with that. -S
All of the other scriptaculous files are in the same folder? (effects.js, etc, etc) If so, I can''t fathom what the problem is. Try just including /js/effects.js instead of scriptaculous.js. Greg> -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org[mailto:rails-spinoffs-> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Stuart Grimshaw > Sent: Wednesday, June 07, 2006 9:00 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] Including scriptaculous.js causes page to"hang"> > When I say hang, I mean the browsers spinner keeps spinning and > Firefox''s info bar at the bottom says "Transfering data from ...... " > > I''m just including the js like this: > > <script src="/js/prototype.js" type="text/javascript"></script> > <script src="/js/scriptaculous.js" type="text/javascript"></script> > > which I cribbed from the demo pages anyway. > > If I remove the 2nd line, and just have prototype loaded, the page > loads Ok. > > I''m only interested in the Blind[Up|Down] functions, so I''ve also > tried : > > <script src="/js/scriptaculous.js?load=effects" type="text/ > javascript"></script> > > but the same thing happens. > > I''m using v1.6.1 of scriptaculous, and the prototype version that > comes with that. > > > -S > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Stuart Grimshaw
2006-Jun-07 18:19 UTC
Re: Including scriptaculous.js causes page to "hang"
Gregory Hill wrote:> All of the other scriptaculous files are in the same folder? > (effects.js, etc, etc) > > If so, I can''t fathom what the problem is. Try just including > /js/effects.js instead of scriptaculous.js.Yes, all the files, including prototype are in the same directory. They are the only files in there too. Permissions are correct so the web server can read them. Including just effects.js allows the page to load, and that seems to have sorted it, I can now use the Effect effects ... Does scriptaculous go into some kind of endless loop I wonder?
I''ve had problems like this when importing some rich text editor libraries after scriptaculous. TinyMCE, in particular would cause browsers to hang unless it was imported before prototype/scriptaculous.>> When I say hang, I mean the browsers spinner keeps spinning and >> Firefox''s info bar at the bottom says "Transfering data from ...... " >> >> I''m just including the js like this: >> >> <script src="/js/prototype.js" type="text/javascript"></script> >> <script src="/js/scriptaculous.js" type="text/javascript"></script> >> >> which I cribbed from the demo pages anyway. >> >> If I remove the 2nd line, and just have prototype loaded, the page >> loads Ok. >> >> I''m only interested in the Blind[Up|Down] functions, so I''ve also >> tried : >> >> <script src="/js/scriptaculous.js?load=effects" type="text/ >> javascript"></script> >> >> but the same thing happens. >> >> I''m using v1.6.1 of scriptaculous, and the prototype version that >> comes with that. >> >> >> -S