Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-22 Thread Jim Barrows
*grumble smurf*  Ok.  I'll just use the link then, and try to get an example
up.

On Sat, Feb 20, 2010 at 12:26 PM, David Pollak <
feeder.of.the.be...@gmail.com> wrote:

>
>
> On Sat, Feb 20, 2010 at 10:59 AM, Jeppe Nejsum Madsen wrote:
>
>> On Sat, Feb 20, 2010 at 7:36 PM, Marius  wrote:
>> > In boot try setting LiftRules.useXhtmlMimeType = false;
>>
>> I've had the same issues and iircc it's an issue with the Uservoice
>> script not being fully xhtml compliant even if the problem is marked
>> as fixed...
>>
>> What exactly does one loose by putting useXhtmlMimeType in Boot?
>>
>
> In my experience, the layout deltas in XHTML are fewer across browsers.
>
>
>>
>> /Jeppe
>>
>> --
>> 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.
>>
>>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
>  --
> 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.
>



-- 
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.



Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread David Pollak
On Sat, Feb 20, 2010 at 10:59 AM, Jeppe Nejsum Madsen wrote:

> On Sat, Feb 20, 2010 at 7:36 PM, Marius  wrote:
> > In boot try setting LiftRules.useXhtmlMimeType = false;
>
> I've had the same issues and iircc it's an issue with the Uservoice
> script not being fully xhtml compliant even if the problem is marked
> as fixed...
>
> What exactly does one loose by putting useXhtmlMimeType in Boot?
>

In my experience, the layout deltas in XHTML are fewer across browsers.


>
> /Jeppe
>
> --
> 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.
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

-- 
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.



Re: [Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Jeppe Nejsum Madsen
On Sat, Feb 20, 2010 at 7:36 PM, Marius  wrote:
> In boot try setting LiftRules.useXhtmlMimeType = false;

I've had the same issues and iircc it's an issue with the Uservoice
script not being fully xhtml compliant even if the problem is marked
as fixed...

What exactly does one loose by putting useXhtmlMimeType in Boot?

/Jeppe

-- 
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.



[Lift] Re: Has anyone gotten the uservoice javascript to work?

2010-02-20 Thread Marius
In boot try setting LiftRules.useXhtmlMimeType = false;

If that doesn't work please try to set up a minimalistic lift app that
you can share so we can try it really quick and diagnose.

Br's,
Marius


On 20 feb., 19:43, Jim Barrows  wrote:
> 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:
>
> 
> 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(); };
> 
>
> You add it at the end of the page, near the  tag.  I put tthe
> //
>
> If I view source, and copy/paste the code to a file, it works just fine.
> When I addhttp://localhost:8080to 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.