pillmann-o02PS0xoJP8IPavLdPmbyGHfThorsUsI@public.gmane.org
2006-Dec-17 15:59 UTC
unterminated string literal
Hello, I am not able to solve this problem on my own. I have a nested Div tag like this: <div id="training" > <div id="daytraining" >Training </div> </div> Some other elements should insert content here by: <%= content_tag("div" ,"Training",:id => "#{training.date.day}" , :onmouseover => update_daytraining(training)) %> ApplicationHelper has a method like this: def update_daytraining(training) update_page do |page| page.insert_html :bottom, ''daytaining'', "<br>Test:#{training.date}</br>" end end I get now following javascripterror : Error: unterminated string literal } catch (e) { alert(''RJS error: Source Code is: <div onmouseover="try { new Insertion.Bottom("daytaining", " Test:2006-12-07"); } catch (e) { alert(''RJS error: '' + e.toString()); alert(''new Insertion.Bottom("daytaining", " Test:2006-12-07");''); throw e }" id="7" style="background-image: none; background-color: transparent;">Training</div What is going wrong here??? Has anyone solved anything like this??? Holger --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- unterminated string literal, how to properly send strings
- link_to_remote with onmouseover event
- different mouse event when using link_to_remote
- Bug#818525: Bug#818525: xen: FTBFS: error: unterminated comment
- bug? Unterminated comment detected beginning on line 0