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


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Lighbox not firing after ajax call
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Lighbox not firing after ajax call
#54618
Lighbox not firing after ajax call 8 Years, 11 Months ago Karma: 0
I am using the lightbox by: <a href="image" rel="sexylightbox[mypics]"><image></a>
Which is working fine on initial load.

However, I have a menu which loads new content (and new images to be shown in the lightbox) via an ajax call.

When the ajaxcall has appended the new content - the lightbox does not fire anymore.

Can I re-initiate the lightbox somehow, after my ajax call? (Im guessing that must be the problem?)

Thanks
John
The administrator has disabled public write access.
 
#54620
Re:Lighbox not firing after ajax call 8 Years, 11 Months ago Karma: 748
Hello,

When a new content is added it requires to initialise the lightbox for this content. Call the following javascript code:

Code:


if (typeof(SexyLightbox) != "undefined") SexyLightbox.refresh();



Regards,
ARI Soft
The administrator has disabled public write access.
 
#54621
Re:Lighbox not firing after ajax call 8 Years, 11 Months ago Karma: 0
Exellent! Thank you. exactly what I was looking for.
The administrator has disabled public write access.
 
Go to topPage: 1