I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this:
The thing seems to load properly and the scripts work - the thing is when I'm setting some personalizable properties in the webpart's options, its supposed to fire a jquery script from codebehind, like this:
And this gives me the following error:
Uncaught ReferenceError: jQuery is not defined
It seems like LiteralControl adds the markup as the first element inside head, instead of possibly adding it after the jquery reference. What would be the best way to approach an issue like that?