Forum Discussion

AaronBenjamin67's avatar
13 years ago

Uniform JS Installation

Hey folks... I'm trying to install Uniform JS to our community, and for some reason it's not working. 

 

Can anyone think of any reason this wouldn't work on lithium? Has anyonce succesfully installed it? 

 

see http://uniformjs.com/

 

thanks! 

3 Replies

  • I haven't done uniform, but I have done other jQuery extensions successfully.  How are you installing this and how are you referencing it within Li?  FYI, this is what I did for QTip:

     

    <link type="text/css" rel="stylesheet" href="/html/assets/jquery.qtip.min.css" />
    <script type="text/javascript" src="/html/assets/jquery.min.js"></script>
    <script type="text/javascript" src="/html/assets/jquery.qtip.min.js"></script>
    <script type="text/javascript">
    jQuery.noConflict();
    ;(function($) {
    ...
    })(jQuery);

     

    I couldn't use Li's built-in jQuery, but this worked.

  • I'm able to reference the script just fine... However, Uniform is a script that goes through and re-styles form elements on the page, but there seems to be some conflict with the Lithium CSS.
  • xorrkaz's avatar
    xorrkaz
    Genius
    13 years ago

    Ah, understood.  Yeah, we noticed quite a bit of CSS conflicts ourselves when using some pop-up technology.  We ended up doing a lot of element style overrides (which sucks for scaling).  Sadly, I don't have better advice for you.  Hopefully one of the Li guys might have some more insight.