load and reload Lightbox scripts after I load more content
-
I’m developing a small plugin to support some authors. Basically, it loads a (single page style) article page as normal, but cuts short its content and replaces that with a button. That button then loads the rest of the content, after being clicked. (It checks more stuff, of course.)
Now, my problem is that a lot of lightbox-like script replace or add classnames to images and other content.
Those scripts have of course already run before my script ever runs.
Thus: they don’t work because those replacements are never done on the classnames that go with possible additional images. (To name one mediatype.)
What would be a good way to approach this and get as much scripts as possible to (re)load as possible after my button has done it’s task? (It’s fairly easy to just reload a single script that I know about, but I don’t know what kind of plugins each author runs on their site, of course.)
Could I just get the page to fire a new document.ready status and hope for the best?
- The topic ‘load and reload Lightbox scripts after I load more content’ is closed to new replies.