It looks like your prototype.js file isn''t loading, but effects.js
is. Really. Notice how the paths are different?
Also, if you''re just using the effects library, there is no reason to
include scriptaculous.js in the page.
TAG
On Jul 27, 2007, at 4:40 PM, gesiwuj wrote:
>
> Code isn''t working, I was wondering if anyone could use their
> expertise to help figure out the problem.
>
> SCRIPT DECLARATIONS
> <script src="javascripts/prototype.js"
type="text/javascript"></
> script>
> <script src="javascripts/scriptaculous.js"
type="text/javascript"></
> script>
> <script src="scripts/effects.js"
type="text/javascript"></script>
>
>
> IMPLEMENTATION
> <p>
> <label for="email">Email:</label>
> <input name="email" type="text"
id="email" size="50"
> onfocus="new
Effect.toggle($(''noSpam''),''blind'')"/
onblur="new
>
Effect.toggle($(''noSpam''),''blind'')">
> </p>
> <div id="noSpam"> Your email address is required by
our
> blogging software. that it will not be spammed, or shown publically at
> all.</div>
> <p>
>
>
> I''m trying to make it so that when one focuses on the email
text-box,
> my little message (in the div, id="noSpam") blinds in and when
the
> user tabs to the next box, the message blinds away.
>
> So far, the div just stays there... (tested in Firefox Mac & Safari).
> Firefox throws this errors in the Error Console when the page loads
> (URLs have been truncated by me):
>
>
> Error: Prototype is not defined
> Source File: /scripts/effects.js
> Line: 147
>
>
> And this error when focusing or blurring:
>
>
> Error: $ is not defined
> Source File: /index.html
> Line: 1
>
> Thankyou very much for any replies. Bye.
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---