[Developers] Using the Freebase.com client as an IFRAME your own web app
Will Moffat
willmoffat at metaweb.com
Wed Mar 26 17:07:09 UTC 2008
Hello,
I've seen a few Javascript developers (including myself) go through
this process:
* write a cool Javascript Freebase app (like Zak's http://dev.mqlx.com/~zak/arch/)
* decide to give users the ability to edit data
* decide you can't be bothered to re-implement the features of the
Freebase.com client (and learn mqlwrite + setup an api proxy)
* Take the path of least resistance and use a modal dialog IFRAME to
display the topic in Freebase
This Freebase-in-IFRAME approach has two problems:
* How do we know if the user changed data?
(We want to avoid rebuilding the state of a complex AJAX app if
possible)
The mwLastWriteTime cookie may have been updated, but it's
inaccessible since the app isn't on freebase.com
* How do we get this changed data?
Since the mwLastWriteTime cookie isn't set, re-running the MQL query
won't give the latest data.
You need to resort to cache-busting techniques like incrementing limit'
Any ideas about how to solve these problems?
cheers,
--Will
More information about the Developers
mailing list