prototype.js should be included before any of the scriptaculous files.
Try:
<script type="text/javascript"
src="prototype.js"></script>
<script type="text/javascript"
src="effects.js"></script>
...
- kangax
On Feb 27, 5:23 am, ultraago
<ultra....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi guys,
> I admit: i''m a beginner.
> This is my problem: I followed the usage guideline to implements
> scriptaculous in my webpages, but it doesn''t work and i cannot
> understand why.
> I imported the scripts:
>
> <script type="text/javascript"
src="scriptaculous.js"></script>
> <script type="text/javascript"
src="effects.js"></script>
> <script type="text/javascript"
src="prototype.js"></script>
>
> Then in a div I wrote:
>
> <div id="im" onclick="new
Effect.Grow(''im'', {direction: ''top-
> left''});">Test</div>
>
> just to test the scripts. I also tried to to use ''this''
as a
> parameter, but it doesn''t work, too! :''(
> Hope to read your answers... thank you.
>
> PS: Sorry. I know i write an horrible english.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---