Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 18/11/2017 Black Friday is coming

    Don't wait BLACK FRIDAY, use FRIDAY17 coupon code to get 35% discount for all our extensions right now.

  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Accessing the DOM within Sexy Lightbox Lite
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Accessing the DOM within Sexy Lightbox Lite
#16682
Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 0
Hi there,

First I would like to say I absolutely love your plugin, and have used it many different times. It is one of my favorites. That being said, I have been working for hours on trying to get this without help to no avail. Basically, I am calling SexyLightbox and within the lightbox I have a series of divs. Using a link within the lightbox, I am trying to call a javascript function that hides and reveals each div.

Normally I would write something like:

document.getElementById('objectName').style.visibility="hidden";

This is not working because (and I may be wrong in this) but SexyLightbox works on a layer above the base document layer. How do I need to change the above command to make it reference an ID found within the lightbox content?

Thanks for your help.
The administrator has disabled public write access.
 
#16683
Re:Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 670
Hello,

Where we can see sample of usage? Do you load remote page into the lightbox?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#16684
Re:Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 0
Basically the idea of the lightbox is to be a "logbook" that the user can browse. All of the data for the pages is loaded when the index page is loaded. Each page is a separate div, all hidden. When the lightbox is activated you have two pages that are visible. Clicking a link (the lower right hand dogear) should then hide the div, and unhide the next one.

www.skybourne.com/build/

Open the lightbox by clicking the book in the left corner under the twitter feed.
The administrator has disabled public write access.
 
#16686
Re:Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 0
UPDATE:

It seems that it is hiding and unhiding the contect correctly, but not while the lightbox is up. Once the lightbox is closed, upon reopening, the correct content is shown.

To answer your earlier question, the javascript is on the same webpage that calls the lightbox itself, though it is a separate page, its called within joomla as a module. It uses the inline version of the lightbox. The javascript is outside of the lightbox's content div.
Last Edit: 2011/06/29 08:00 By aschueckler.Reason: Adding more information
The administrator has disabled public write access.
 
#16695
Re:Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 670
You can place necessary code for "logbook" into an article and load this article into the lightbox instead of loading "logbook" as inline content.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#16696
Re:Accessing the DOM within Sexy Lightbox Lite 6 Years, 5 Months ago Karma: 0
I cannot get the article to pull into the lightbox, I am using the following code in a module to open it:
<a href="index.php?option=com_content&view=article&tmpl=component&id=17&TB_iframe=true&width=980&height=700" rel="sexylightbox" title="Related article">Show article</a>
The administrator has disabled public write access.
 
Go to topPage: 12