Lightbox


#1

Hi, I have been trying to embed the twitter timeline widget into the lightbox2 plugin(https://github.com/lokesh/lightbox2) unsuccessfully.

The problem on my side is with the way the script initializes once and once only, making it unfriendly for lightboxes as it can’t re-initialize(reload).

The jQuery workaround to this is very taxing and I think that maybe if you could change the architecture a bit so that on each click of the link it reloads the timeline.

Obviously this is my use case and the widget is probably satisfactory for many other users.

I’m sure though that going into the future I am not the only one that’s going to want to use the widget in this way.

Any help, or anyone else that has encountered a similar problem can reply to this discussion.

ThanQ


#2

Have you tried to call twttr.widgets.load() after making visible the DOM node including the widget?


#3