Hello,
I am trying to move an asp.net application into a dnn module.
I've put my jquery code into a couple of files, which I've included in a user control (not View.ascx but my own user control which sits inside view.ascx).
I used the following lines which works fine in asp.net but isn't even seen in the page generated within the module:
<script src="../Scripts/ContentItemUserControl.js"></script>
<script src="../Scripts/PageBehindUserControl.js"></script>
I created these two lines by dragging the file onto the user control, to be sure there aren't any typos. My user control is inside a directory, hence the '../Scripts' prefix.
Checking under host settings I can see that JQuery 1.9.1 is included, so I haven't referenced the JQuery libraries from the control.
As suggested in the documentation, I also included the following line in the page load:
DotNetNuke.Framework.jQuery.RequestUIRegistration();
But the page isn't seeing my jquery files at all as they're not in the page.
Anyone got any suggestions? If anyone needs more information or anything isn't clear, please let me know.
Best Regards,
Steve