[Developers] Using the Freebase.com client as an IFRAME your own web app
Will Moffat
willmoffat at metaweb.com
Wed Mar 26 23:45:44 UTC 2008
On 26 Mar 2008, at 18:25, John Giannandrea wrote:
> You are trying to share state between two sandboxes (the iframe and
> the enclosing window) that are trying really hard to not let you
> share state!
> I believe there are ugly ways to do this such as appending the
> parent's url with #<data> or using .swf
True. Hopefully one day there will be a clean way to do this supported
by all browsers, but I'm not holding my breath:
http://www.whatwg.org/specs/web-apps/current-work/multipage/section-crossDocumentMessages.html#crossDocumentMessages
> Assuming you know that the iframe has changed state (closed?)
Yes, if you stick it in a modal dialog that's no problem.
> you could do a tiny MQL query to the graph to check the timestamp of
> the last link written by that user.
I was thinking along those lines, but it seems to be a catch-22
situation. You need access to the 'metaweb-user' cookie to get the
user name.
regards,
--Will
More information about the Developers
mailing list