Page view counter

How to add javascript to a dotnetnuke module

Last post 11-07-2005 12:02 PM by r00tsec. 4 replies.

Sort Posts:

  • How to add javascript to a dotnetnuke module

    11-04-2005, 1:04 PM
    • Loading...
    • r00tsec
    • Joined on 07-25-2005, 11:28 AM
    • Posts 9
    • Points 45
    Is it possible to add a short amount of javascript to the HTML/TEXT module and get it to work? I have tried and I cannot. Basically what I am trying to do is to add an RSS to Javascript converter (http://www.rss-to-javascript.com) to a module to get sticky RSS content on my site.

    Anyone have any ideas on how I can accomplish this?

    Thanks!

  • Re: How to add javascript to a dotnetnuke module

    11-04-2005, 1:10 PM
    • Loading...
    • thecrispy1
    • Joined on 06-24-2002, 1:06 PM
    • USA
    • Posts 2,434
    • Points 12,167
    • TrustedFriends-MVPs
    There are a couple things here.  The script items usually have to be injected into the <head>.  This cannot be done form the text/html alone.  Also, there are built in XSS checks done in the core text/html module.  You would have to use some custom mod to inject the script into the head and then you should be able to do this.
    Chris Paterra


  • Re: How to add javascript to a dotnetnuke module

    11-04-2005, 1:59 PM
    • Loading...
    • r00tsec
    • Joined on 07-25-2005, 11:28 AM
    • Posts 9
    • Points 45
    There is really nothing that has to go into the header tag though if you look at the javascript, it is just adding this chunck:

    <script language="JavaScript" src="http://convert.rss-to-javascript.com/?simple_chan=1&desc=1&desc_max=100&num=10&src=http%3A%2F%2Fwww.rss-to-javascript.com%2Fp%2F138.html">
    </script><noscript>Your browser does not support JavaScript. <a title='RSS-to-JavaScript.com: Free RSS to JavaScript Converter' href=http://www.rss-to-javascript.com/?p=151,381&simple_chan=1&desc=1&desc_max=100&num=10&src=http%3A%2F%2Fwww.rss-to-javascript.com%2Fp%2F138.html&as_html=1>Click to read the latest news</a>.</noscript>
     <a href=http://www.rss-to-javascript.com target=_blank title='RSS-to-JavaScript.com: Free RSS to JavaScript Converter'><img src=http://www.rss-to-javascript.com/images/rss-to-jss-small.gif alt='RSS to JavaScript' border=0></a>

    So I am not certain why it should be working...

  • Re: How to add javascript to a dotnetnuke module

    11-04-2005, 5:03 PM
    • Loading...
    • DooDahMan
    • Joined on 08-31-2005, 3:41 PM
    • Posts 45
    • Points 225
    Don't understand your need.  Why not just use the built-in News Feed(RSS) module? 
  • Re: How to add javascript to a dotnetnuke module

    11-07-2005, 12:02 PM
    • Loading...
    • r00tsec
    • Joined on 07-25-2005, 11:28 AM
    • Posts 9
    • Points 45
    THe DNN RSS feed will dump the content, this allows it to be sticky
Page 1 of 1 (5 items)