0

I am using Fancybox. Type is iframe.

Here's the code:

$(".open_iframe").fancybox({
        type: 'iframe'
});

On this page I have a variable:

var myVar = 'Some Value';

What I need to do is to pass myVar to the child page which pop's up.

How can I do this?

  • 1
    You could also check this if that helps http://stackoverflow.com/a/26446330/1055987 – JFK Aug 27 '16 at 20:24

1 Answers1

0

Fancybox serves you a page given a URL to load - you can try and pass a parameter in the link (GET request) and set your routes to deal with it,

fedesc
  • 2,554
  • 2
  • 23
  • 39