Jeremy,
You are correct - I am still on 1.0.
Since my site is live, I was nervous about doing an in place upgrade
unless I saw issues I was needing to fix.
The good news is that the line you gave me above worked fine.
The bad news is that as soon as I added the line below back in, the
Contribute page dies on IE again:
<?php echo js('lightbox', 'common/lightbox/js'); ?>
This is what that line generated in the HTML:
<script type="text/javascript" src="http://
www.caseyfeldmanmemories.org/themes/thanksroy/common/lightbox/js/lightbox.js"
charset="utf-8"></script>
Maybe this takes us back to my question about not including that line
on the contribution/share page?
Other thoughts?
Jeanne
On Nov 22, 9:50 am, Jeremy Boggs <
jer...@clioweb.org> wrote:
> Jeanne:
>
> I assume its not working for you because you're using Omeka 1.0 or
> earlier. In 1.0, the js() function would only accept the effects
> parameter if you used 'default' as the first parameter for the file,
> and not if you 'scriptaculous' specifically. We fixed the js()
> function in Omeka 1.1 to allow for this. If you upgrade to Omeka 1.1,
> the code I sent in my last email should work fine.
>
> If you want to stay on 1.0 for whatever reason, you should be able to
> do this to load the 'builder' effect for scriptaculous using this:
>
> <?php echo js('default', 'javascripts', array('effects', 'dragdrop',
> 'builder')); ?>
>
> This should output:
>
> <script type="text/javascript" src="
http://www.caseyfeldmanmemories.org/application/views/scripts/javascr...
> " charset="utf-8"></script>
> <script type="text/javascript" src="
http://www.caseyfeldmanmemories.org/application/views/scripts/javascr...
> " charset="utf-8"></script>
> <script type="text/javascript" src="
http://www.caseyfeldmanmemories.org/application/views/scripts/javascr...
> " charset="utf-8"></script>
>
> This should work in 1.1 as well. Looking at it now, there isn't a
> reason to declare prototype, prototype-extensions, and scriptaculous
> in their own js() function separately, since passing 'default' as the
> first parameter to the js() function will load all three of those.
>
> Hope this helps,
> Jeremy
>
> On Nov 22, 2009, at 1:14 AM, Jeanne wrote:
>
> > Jeremy,
>
> > Just tried your suggestion - and this line (needed to add another
> > close paren to get it to not spit back errors):
> > <?php echo js('scriptaculous', 'javascripts', array
> > ('effects','dragdrop','builder')); ?>
> > generates this code:
> > <script type="text/javascript" src="http://
> >
www.caseyfeldmanmemories.org/application/views/scripts/javascripts/sc...