When converting HTML to JavaScript, turn <script> tags into JsRaw
When converting HTML into JavaScript for sending down to the browser as part of an Ajax response or part of a Comet response, turn the <script> tags into JsRaw that executes when the page is loaded.
Leave a comment
There is the reference mailing list thread:
https://groups.google.com/forum/?pli=1#!topic/liftweb/5u_UEGTw-hIExampleName
And reference demo project:
https://github.com/fanf/lift_demo_ajax_scriptExampleName
https://groups.google.com/forum/?pli=1#!topic/liftweb/5u_UEGTw-hIExampleName
And reference demo project:
https://github.com/fanf/lift_demo_ajax_scriptExampleName
Sorry, bad link above, corrected here:
There is the reference mailing list thread:
https://groups.google.com/forum/?pli=1#!topic/liftweb/5u_UEGTw-hIExampleName
And reference demo project:
https://github.com/fanf/lift_demo_ajax_scriptExampleName
There is the reference mailing list thread:
https://groups.google.com/forum/?pli=1#!topic/liftweb/5u_UEGTw-hIExampleName
And reference demo project:
https://github.com/fanf/lift_demo_ajax_scriptExampleName
(In revision:bc63227cb3bd8962da90b2ebe86d84ea09524b2f) Closes #854. Script tags are converted into executable commands when the HTML is converted to a String for use in JavaScript
Branch: master
Branch: master
I get a 404 on the revision-link, but found the comment on another one:
https://github.com/lift/framework/commit/531b37bfdff75854dd78eee895e4cc3a6f43894e
https://github.com/lift/framework/commit/531b37bfdff75854dd78eee895e4cc3a6f43894e