tags:

views:

502

answers:

1

Id like to add a block to my homepage that contains some javascript, more specifically the code provided by del.icio.us to output a tagroll.

its actually just a link to an external file

<script type="text/javascript" src="http://feeds.delicious.com/v2/js/tags/dude123?title=del.icio.us-cloud&amp;count=7&amp;sort=freq&amp;flow=cloud&amp;color=666666-999999&amp;size=12-35"&gt;&lt;/script&gt;

if i just paste this in the "block content" field, obviously nothing is output. would the standard way be to create the block programatically and then use drupal_add_js ?

+3  A: 

You can paste the script tags directly into the block content field and it will work. You just need to make sure that whatever input filter you are using doesn't strip out the script tags.

quickcel
thanks, that worked
stef

related questions