[web2py] Re: javascript problem (in load called via response js)

2015-01-07 Thread Derek
Well, it could be ordering. Dependencies in javascript are difficult. You may want to use RequireJS. What's probably happening is that this script is running before jqx-all is loaded completely. You might also change your $(document).ready() into $(window).load() to give the rest of the files a

[web2py] Re: javascript problem (in load called via response js)

2015-01-07 Thread ArtDijk
I see via the browser network activities that jqx-all.js is loaded. It is located in the static/js folder. The json file does not contain a singlequote. I hardcopied the json into a html page with this grid and that worked ok. -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] Re: javascript problem (in load called via response js)

2015-01-06 Thread Derek
make sure it's loading jqx. It doesn't appear to be. did you put it in a folder 'js' inside the static files? mixing javascript and web2py's templating system should be discouraged if it's not already. It's bad practice to have web2py write your javascript for you. it may be that the mix cause

[web2py] Re: javascript problem (in load called via response js)

2015-01-06 Thread Derek
make sure it's loading jqx. It doesn't appear to be. did you put it in a folder 'js' inside the static files? mixing javascript and web2py's templating system should be discouraged if it's not already. It's bad practice to have web2py write your javascript for you. it may be that the mix cause