Adding a JQuery Plugin (6.x)

Adding a JQuery Plugin (6.x)

This question is not answered

I was attempting to add a jQuery plugin to my 6.x install.  I did this by adding a new javascript file to the theme, but it appears the core jQuery libraries are rendered after the <body> tag by Telligent, and the plugin is rendered in the head causing it not to work.  Any recommendations on how I can get this added (without modifying core files?)

All Replies
  • You can always attach it to the widget that is using it.  Another option is use a header or footer widget to hold a script tag with the embedded script
     
    Patrick Mason
    Development Lead- Extensibility
    o: 214.420.1329
    telligent.com
     
    From: lucasrd [mailto:bounce-lucasrd@communities.telligent.com]
    Sent: Monday, September 17, 2012 8:14 AM
    To: bugsandissues@communities.telligent.com
    Subject: [Bugs and Issues - Telligent Community] Adding a JQuery Plugin (6.x)
     

    I was attempting to add a jQuery plugin to my 6.x install.  I did this by adding a new javascript file to the theme, but it appears the core jQuery libraries are rendered after the <body> tag by Telligent, and the plugin is rendered in the head causing it not to work.  Any recommendations on how I can get this added (without modifying core files?)

  • Thanks Patrick, I attached it to the widget for now, I was just hoping I could install it as part of the theme...Is there any particular reason you guys put the jQuery scripts after the <body>??