Frameready - How do you get the data in the target frame
I want to use
http://ideamill.synaptrixgroup.com/?page_id=18 plugin to pass data to an iframe. The example on the site is as below.
-
$.frameReady(function(){ $("<div>I am a div element. "+frData.myVariable+" </div>").prependTo("body");}
, "top.mainFrame"
, { data:{myVariable: "I am data passed to this frame"}
, load:[
{type:"script", id:"_fr", src:"/js/myscript.js", test:"myFunction"},
{type:"stylesheet", id:"_ss", src:"mycss.css"}
] }
);
Im stuggling to work out how to get the data from myVariable into the target frame. The notes say it is an object available as frData. Anyone able to help a n00b out? Im am assuming I need to run a function on the iframe page