On Mon, May 18, 2009 at 11:45 AM, Mk 27
<[email protected]> wrote:
>
> I'm reading along with "Ajax on Rails" (2007)
a bit old, but ...
> and the first exercise goes like this:
> Then editing example/app/views/myaction.html.erb to look like this:
>
> <script language="javascript" type="text/javascipt">
> What's the deal? I have not tried src'ing an external script (as I am
> not sure where I would put that). I can't really proceed if the js in
> the view is just going to be ignored. I also added the
> language="javascript", as this seems to be necessary sometimes in normal
> html pages, but this does not help.
1) the language attribute is not only not "necessary", it's deprecated;
don't use it.
2) spell text/javascript correctly and it should work as intended.
HTH,
--
Hassan Schroeder ------------------------ [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---