I believe my problem was the missing ";" at the end of the function assignment although I thought I had tried that, anyway thanks for all the help here.
On May 7, 4:37 pm, tobie <[EMAIL PROTECTED]> wrote: > You're probably having a scope issue here. > > Try this: > > <script>window.testfunc = function() { alert("here")}; > testfunction();</script> --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---