resource and javascript

resource and javascript

by wyman Griffin -
Number of replies: 1
I am having a problem adding java script to Moodle. I created my code and tested it out and it works. But when I put it into moodle, the html looks fine but the javascript portion looks messed up. The code I am putting into the Moodle looke like this:
<script type="text/javascript" src="/soundmanager/soundmanager2.js"></script>
<script type="text/javascript">
soundManager.url = '/soundmanager/soundmanager2.swf'; // override default SWF url
soundManager.debugMode = false;
soundManager.consoleOnly = false;
</script>

I have this working in many programs. Is there a setting that I don't know abouut to get Moodle to recognize javascript.
Average of ratings: -
In reply to wyman Griffin

Re: resource and javascript

by wyman Griffin -
I forgot to add this in my first post. When I come back to view the html code, the code: <script type="text/javascript" src="/soundmanager/soundmanager2.js"></script>
<script type="text/javascript">
soundManager.url = '/soundmanager/soundmanager2.swf'; // override default SWF url
soundManager.debugMode = false;
soundManager.consoleOnly = false;
</script>

Has disappeard. This is driving me crasy. Everything I read about this says it should work. I have my filters set, etc. What am I missing??