I want to use frameready 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?