Hi Christopher,
For your exhibit on cjw.me.uk to be able to access the data from
www.editgrid.com, you have to get the data in JSONP format, not just
JSON. JSONP is basically JSON with a callback. EditGrid already supports
JSONP. Your data can be seen in JSONP like this
http://www.editgrid.com/user/cweddell/My_Kiva_Loans.json?callback=foo
But accessing it this way does not yield Exhibit JSON format. I'm not
sure what you have done to get Exhibit JSON for this URL
http://www.editgrid.com/user/cweddell/My_Kiva_Loans.js
but see if you can do similar things to get the Exhibit JSON for this URL
http://www.editgrid.com/user/cweddell/My_Kiva_Loans.json?callback=foo
Then you can just plug in that URL, and change "application/json" to
"application/jsonp".
If you can't get that to work, then change your link to this
<link href="http://www.editgrid.com/user/cweddell/My_Kiva_Loans.json"
type="application/jsonp"
rel="exhibit/data"
ex:converter="editGridConverter" />
and add your own EditGrid converter
<script>
var editGridConverter = function(json, url) {
...
};
</script>
There is the Google Spreadsheet converter here to serve as an example:
http://static.simile.mit.edu/exhibit/api-2.0/scripts/data/importers/jsonp-importer.js
Cheers,
David
Christopher Weddell wrote:
> I am afraid I am at the very edge of my knowledge here and don't
> understand the error - I was hoping someone here might.
>
> This is the error as reported with Firebug...
> Unknown property 'text-alight'. Declaration dropped.
> [Break on this error]
> [Exception... "'Permission denied to call method XMLHttpRequest.open'
> when calling method: [nsIDOMEventListener::handleEvent]" nsresult:
> "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>"
> data: no]
>
> This is what happened (sorry long story)
> I have been using Exhibit for a couple of months now and getting on
> really well with it using a Googlespreadsheet feed but I wanted to
> migrate my data to editgrid.com <http://editgrid.com> and make use of
> their facility to use XML stylesheets.
>
> Using a stylesheet in editgrid I have created an export of the data
> and made it look like an Exhibit JSON file - this works perfectly for
> 3 different browsers if I save the file locally to use. If not and I
> use it directly from the editgrid permalink I get an error in FF2 but
> not in IE 7 or Safari 3.
>
> This is the file that does work is here:
> http://cjw.me.uk/editgriddemo/editgridlocal.html using a locally saved
> copy of the data feed here: http://cjw.me.uk/editgriddemo/My_Kiva_Loans.js
>
> This is the file that creates an error in FF:
> http://cjw.me.uk/editgriddemo/editgridhosted.html using the data feed
> from http://www.editgrid.com/user/cweddell/My_Kiva_Loans.js
>
> Kind regards
> Christopher
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general