Neo - wrote:
I want to open a link in modal window. I got lot of jquery plugins which works well in a dummy page but i am not able to make it work on jive SBS 4.0. So here are my doubts. It will be great if some one can put some light on them.
1) Do jive supports jquery inbuilt? Also does it comes with prototype inbuilt? Is there any limitations?
2) If it comes with jquery is there a way to remove it so that i can use my custom jquery/Latest available jquery?
3) Is there an existing modal window some where in jive sbs which i can reuse? (Desired option.)
We do include jquery. Version 4.0.x of the product ships with jquery 1.3.2. It is not recommended that this be replaced, because it could interfere with existing functionality.
Prototype is shipped with some versions of the software, but generally it is better not to use it because it will be disappearing in future versions. JQuery is a better bet.
My suggestion? Probably just used the built in lightbox_me() call and then you don't need any additional dependencies.
I had the same issue with using a modal window, so I followed Daniel's advice and used the lightbox_me(). It works great and I will probably use this plugin on other sites where I use modal windows. You can paste this sample code into an HTML Widget to see it work:
<a id="openModalLink" class="j-button" href="#">Open Modal Window</a>
<div id="modalWindow" style="display:none; padding:50px; background:#fff;">
<h1>This is a test modal window!!!</h1>
<br /><br />
<a class="j-button close" href="#">Close Window</a>
Here is the Lightbox_me website with documentation and a demo: Lightbox_me - Stupidly Simple Lightboxing - The jQuery lightbox plugin for people who know what they're doing.
I tried the same code in Jive 6.0.3 html widget but didn't worked. The modal window in appearing inside the widget, is there any other setting I need to do?
Hi Jiban Patro
This is slightly different for Jive 6.0.3.
As jbove stated, using lightbox_me is a great solution for Modal windows. Here is an example you can copy and paste into an HTML widget, just replace the DOCID (line 32) with a valid doc in your instance, and it will embed a document into a modal window. This will work with Jive 4, 4.5 or Jive 5. To use Jive's embedded version of jquery make sure you use the $j operator.
Hope that helps.
Is there amyway to use lightboxme to play a Youtube video?