JQuery prettyPhoto: How to pass advanced GET parameters?

<a href="page.html?iframe=true&amp;width=700&amp;height=100%&amp;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 a similar question here , but he also did not answer.
+4
source share
1 answer

SOLUTION FOUND . The URL parameters you want to pass must be before the iframe variable. For instance:.

 page.html?myVar=text&iframe=true&width=700&height=100% 
+2
source

Source: https://habr.com/ru/post/1382074/


All Articles