Reid S. Carlberg
2006-Jun-19 15:09 UTC
script.aculo.us support script loading fails with SiteMesh in FireFox
Hi everyone, I''m new to Script.aculo.us. I''ve searched the archives but haven''t found any info on this so thought I would ask. I have a web app that uses SiteMesh from OpenSymphony. Basically, it''s an outbound page decorator that applies common elements to pages as they head back to the client. I''d like to used the slider control, so I''ve added prototype.js and scriptaculous.js to the head element. It fails to load slider with a FireBug message of "Control is not defined." Irritatingly, and somewhat surprisingly, this seems to be unique to Firefox 1.5.0.4. IE works. Grumble grumble grumble. Troubleshooting so far: * test slider in a plain html site. works great. of course. :) * test slider as part of the decorator aka template with sitemesh. fails in firefox, succeeds in IE. * test slider as part of the decorated page. fails in firefox, succeeds in ie. * tested with specifying the load variables on a decorated page. e.g., load=slider. fails in firefox, succeeds in ie. * tested with combining the scriptaculous.js and slider.js files. works great in both firefox and ie. when I put some alerts and what not into the scripta...js code, it seems like it never goes through that auto loading loop (the $A blah blah blah). Any ideas on other troubleshooting? Anyone have experience with this? Thanks! Reid -- Reid S. Carlberg Five Sticks, Inc. 708-386-4200 x 201 http://FastWebUpdates.com - Expert Website Maintenance at an Affordable Price
Bryce Fischer
2006-Jun-19 17:23 UTC
Re: script.aculo.us support script loading fails with SiteMesh in FireFox
On 6/19/06, Reid S. Carlberg <rsc1-H59CpKk83I5SwrhanM7KvQ@public.gmane.org> wrote:> Hi everyone, > > I''m new to Script.aculo.us. I''ve searched the archives but haven''t > found any info on this so thought I would ask. > > I have a web app that uses SiteMesh from OpenSymphony. Basically, it''s > an outbound page decorator that applies common elements to pages as they > head back to the client. I''d like to used the slider control, so I''ve > added prototype.js and scriptaculous.js to the head element. It fails > to load slider with a FireBug message of "Control is not defined."While I can''t answer your question specifically, I can say I have used SiteMesh and scriptaculous together successfully. One thing I do to debug these issues to take the generated source, and edit that file until it works, the propagate the changes back to the file or decorator. Sometimes its obvious when just looking at the source, such as specific files not getting included, etc. Good luck.