I've spent 4 hours trying to get this to work, and I can't...any help appreciated.
Joomla 1.5.15
Sourcerer editor button v2.3.2
Trying to get this code to work in a MODULE:
<!-- BEGIN VOTESMART WIDGET -->
<script type="text/javascript" src="
votesmart.org/js/widgets/search/js/jquer...script><script type="text/javascript" src="
votesmart.org/js/widgets/search/js/init....t;/script><div id="pvs_search"><a href="
votesmart.org">Project Vote Smart</a> - Search Candidates, Elections and Officials<br /><br />Javascript must be enabled.</div>
<!-- END VOTESMART WIDGET -->
The frustrating this is that the code WORKS when it's in an article, but NOT when it's in a module (and perhaps it's then a Joomla issue, but I can't figure it out).
My steps are:
Extensions Menu...Module Manager
New
Custom HTML (Is the the proper choice here?)
Next
Enter Title: MYMOD
Show Title: Yes
Enabled: Yes
Position: right (I want it in the right sidebar)
Order: 0
Menus: All
In Custom Output box, I click the button for "Insert Code" and replace the sample code. I'm left with:
{source}
<!-- BEGIN VOTESMART WIDGET -->
<script type="text/javascript" src="
votesmart.org/js/widgets/search/js/jquer...script><script type="text/javascript" src="
votesmart.org/js/widgets/search/js/init....t;/script><div id="pvs_search"><a href="
votesmart.org">Project Vote Smart</a> - Search Candidates, Elections and Officials<br /><br />Javascript must be enabled.</div>
<!-- END VOTESMART WIDGET -->
{/source}
Click the "Insert" button
Then click the "Save" button
Refresh my Joomla site and the script doesn't load--I get the error code:
"Project Vote Smart - Search Candidates, Elections and Officials
Javascript must be enabled."
Very, very frustrating especially since following the same steps but using an Article rather than a Module works great.
PLEASE--can someone help me and tell me what's wrong?
Thanks!