Colin Law wrote:
> 2009/6/3 Tyler Knappe <[email protected]>:
> 
> I don't know why the syntax error, but if I had this problem I would
> keep deleting stuff till it goes away, then add it back to find
> exactly the problem.  I have pasted your script into a page of mine
> and it does not give an error. Which line is the error reported on?
> Are you sure the script is not inside another tag that is confusing
> it? Try moving it out to the top level.  Keep trying things till the
> error goes away then work out what causes it.
> 
> Colin

Here is something interesting:

When I click on the link I see this error in firebug:

testjs is not defined
onclick(click clientX=71, clientY=479)HTsSTthn...RWQ%3D%3D (line 2)
[Break on this error] testjs();

Could it  be that test.js is not being included? I see this when 
checking the source:

<script src="/javascripts/test.js?1244041352" 
type="text/javascript"></script>

So I would think that the function 'testjs' defined in test.js would be 
defined.  I tried moving the function into application.js with the same 
result.
-- 
Posted via http://www.ruby-forum.com/.

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