I'm trying to get the uservoice widget working correctly, but it doesn't like working from the server, but works from a file just fine when I view source and copy and paste to a file. Any help would be appreciated!
Uservoice adds it's "feedback" tab via some javascript that looks like: <script type="text/javascript"> var uservoiceOptions = { /* required */ key: 'customerelevator', host: 'customerelevator.uservoice.com', forum: '39338', showTab: true, /* optional */ alignment: 'left', background_color:'#f00', text_color: 'white', hover_color: '#06C', lang: 'en' }; function _loadUserVoice() { var s = document.createElement('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', ("https:" == document.location.protocol ? "https://" : "http://") + "cdn.uservoice.com/javascripts/widgets/tab.js"); document.getElementsByTagName('head')[0].appendChild(s); } _loadSuper = window.onload; window.onload = (typeof window.onload != 'function') ? _loadUserVoice : function() { _loadSuper(); _loadUserVoice(); }; </script> You add it at the end of the page, near the </body> tag. I put tthe //<![CDATA[wrapper around the javascript itself: <script type="text/javascript"> // <![CDATA[ /* Javascript from above goes here */ // ]]> If I view source, and copy/paste the code to a file, it works just fine. When I add http://localhost:8080 to all the now broken links, it works just fine. It's just when I view the page from the server that it's b0rked. -- James A Barrows -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.