I want to include a JS snippet in a Wiki page.
I read this post:
Referencing javascript from trac wiki
and set rendering_unsafe_content = true under [wiki] and restarted the server.
I then placed this in a new/empty wiki page:
{{{
#!html
<script type="text/javascript" >
alert("Test1");
</script>
}}}
but, no alert when the page loads.
I've also tried this:
{{{
#!html
<script type="text/javascript">
$(document).ready(function() {
alert("Test2");
});
</script>
}}}
but that also doesn't work.
In both instances, the JS isn't even included in the rendered page (as determined by inspecting the content).
This would seem to be pretty straightforward, so I'm puzzled that its not working... can anyone tell me what I'm missing?
Thanks!
-Dave