Comments (2)
Hi
lightcase.close()
can be called from any element or event. However, you have to register it using javascript (not in HTML). The data-rel="lightcase" is just the default (out of the box) identificator for lightcase items. If you want to do advanced stuff, you can also initialize your lightcase links with something else and you will have full control of your HTML elements.
Example:
$( document ).ready(function() {
$('a[data-rel="your-own-value"]').lightcase('init', {
'onFinish': {
// close lightcase automatically
setTimeout(function () {
lightcase.close();
}, 5000);
}
});
});
Hope this helps.
from lightcase.
@cbopp-art I have lightcase loading a separate page in an iFrame, is it possible to close the parent lightbox from within the page loaded in the iFrame.
The above example doesn't work for me, nor does running lightcase.close() from an onClick event in the page loaded with lightcase.
Many thanks
Jim
from lightcase.
Related Issues (20)
- Add *.jpe support HOT 2
- Add images to gallery but only have one image to initialize the gallery HOT 2
- Google Maps error in demo
- Ajax form example error
- Hidiing the scrollbar makes a streching effect to the origin page. HOT 3
- lightcase plugin doesn't work on first click - on me
- Position issue in Firefox when reopen a video lightcase HOT 2
- Follow aria / accessibility best practices HOT 1
- jQuery (3.5.1) error when inserting inline popup HOT 3
- Failing to load lightcase video (with wistia) on iphones Safari mainly chrome too HOT 2
- Auto resize iFrame HOT 1
- Fullscreen for youtube embeded videos HOT 1
- Opening inline popup did not copy the events on elements inside
- pinch-to-zoom functionality HOT 1
- Double click on prev/next executes link
- Displaying large image (document scan) with vertical scroll?
- Documentation site has been down for some time. HOT 3
- Inline popup is too narrow
- Website is down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightcase.