OK, I've been struggling for days trying to understand why my
javascript is just being displayed on the browser rather than
executed.  I have found out the placement of the
javascript_include_tag was my problem.

I have other javascript code in my header and if I place the
javascript_include_tag before my other javascript code I only see the
javascript I'm trying to execute displayed in my browser. If I put it
after my other code, it gets executed.

I can not see what it is about my other javascript code that causes it
to matter.  it only consists of function definitions and quite
honestly after wasting almost a week on this I don't want to spend
more time to figure that out.  So if this happens to anyone else
hopefully the will see this and make sure your
javascript_include_tag :defaults is not being somehow ruined by having
other javascript code after it.

If anyone has some insight into this I'd love to hear it.

-Michael

-- 
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.

Reply via email to