Nathan Friedly
unread,Aug 31, 2010, 6:15:24 PM8/31/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to eas...@googlegroups.com
Hi, is there a way to pass extra data along to the iframe in either the querystring or the hash that js in the iframe can access before easyXDM is initialized?
I'm currently doing this right after initializing easyXDM on the parent page:
var iframes = document.getElementsByTagName('iframe');
var iframe = iframes[iframes.length -1];
iframe.src = iframe.src + '#' + this.get(CDN);
And that works but it shows two load attempts in firebug, one that was aborted, and then a second with the hash. Is there a way to make easyXDM put the extra data in the iframe tag initially?
(I know I could hard-code the cdn url into the iframe, or have the server generate the iframe with the correct url in it, but this seemed like the simplest way to do things.)
Thanks for the great library and all your hard work
-Nathan