By luigi12 on
i found an interesting script:
http://www.quirksmode.org/index.html?/dom/toc.html
for creating a table of content for a page, and i'd like to use it. it seems drupal removes or does not execute javascript. i read several posts on this subject (including javascript in drupal, most of them quite old) and it seems the only/best/working way is to enclose all the content inside a < ? p h p ... ? > tag. beside this being quite unconvenient, it unfortunately does not work for me.
has someone solved this problem so far? (i think so ...). any help would be appreciated.
any
Comments
Javascript in a page
Try choosing PHP code for the Input Format for that page.
Raw filter
On the suggestion of the page for adding Google maps, I created a "raw" input filter that doesn't have any filters and it works fine.
Michelle
How do you get it to insert
How do you get it to insert the script into the HEAD section of the page?
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
fyi, this is the script I'm interested in...
Thanks
I didn't
I just put the script and everything right in the node. Probably doesnt' validate that way, but it functions. :)
There is a drupal function to put things into the head... I _think_ it's drupal_set_head() but I don't know if I'm remembering that right or if it works in a node and I can't check now because my son's going nuts... Try searching on it :)
Michelle