hi, I have been trying to understand how i can include static JavaScript 
files on my view layout.html
I want to embed an editor on web2py.
I have an html code which works out fine on its own: However i would like 
this code to work in web2py as well. I have tried using 
'response.files.append(URL('static','editor.js'))' but it will not work

Please can you direct me on how to handle this. Thanks. Here is the html 
code that works.

'<html>
  <head>
    <script src="http://www.wiris.net/demo/editor/editor";></script>
    <script>
    var editor;
    window.onload = function () {
      editor = com.wiris.jsEditor.JsEditor.newInstance({'language': 'en'});
            editor.insertInto(document.getElementById('editorContainer'));
    }
    </script>
  </head>
  <body>
    <div id="editorContainer"></div>
  </body>
</html>'

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to