jQuery prettyPhoto: How to pass additional GET parameters?
-
04-03-2021 - |
Question
<a href="page.html?iframe=true&width=700&height=100%&myVar=text" rel="prettyPhoto">Click Me</a>
In js script:
$('a[rel*=prettyPhoto]').prettyPhoto({
keyboard_shortcuts: false,
social_tools: false,
deeplinking: false
});
And in page.html I cannot access myVar. Help?
- Found similar question here, but it's not answered either.
Solution
SOLUTION FOUND: The url parameters you want to pass should be before "iframe" variable. Eg.:
page.html?myVar=text&iframe=true&width=700&height=100%
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow