Hi John,
I would like to know how to inject javascript into the head of the default.ascx I have a custom module that I created that needs javascript in the head tag. It then uses javascript to setup alot of parameters.
Thanks Ray
Hi Ray,
This is how I do it:
http://blogs.snapsis.com/CommentView,guid,eef98c82-f54d-480b-8e36-309ca6e406d8.aspx
This will work for a skin but not for a DNN Module. I have now figured out how to Inject the swfobject.js script into the DNN Default.aspx page header. My Media player module is working, but I have one problem, it loads a playlist.xml file and it will not work unless I give it the complete path including the DRIVE Example (c:/DotNetNuke 470/DesktopModules/IfxMediaPlayer/playlist.xml Is there a way in DNN to get the complete path with drive this would also require the server drive and path I guess?
I use the method from the blog post in my modules and it works for me.
To get the Physical Path you can use:
Server.MapPath(virtualPath)
I must say that i back this approach of injecting Script into DNN 110%.
I was apart of that original post back then and i still use it down to this day... IT REALLY DOES WORK!!!
I use John's Script Injection process in all my sites.
DotNetNuke® is a registered trademark of DotNetNuke Corporation