Hello Kiran. Remember that the json file needs to be on the same host
as the html file (due to cross site scripting restrictions). If it's
not, then exhibit won't be able to fetch it at all. Unfortunately,
that will lead to it deceptively complaining of syntax errors.
On Saturday, October 06, 2012 11:22:58 AM, Kiran Gilvaz wrote:
Hi
I've been stuck on an issue that I have been trying to fix for quite
sometime. Any help would be great. So here it is.
I include my JSON and exhibit API like this
<link rel="exhibit/data" type="application/json" href="*sample.json*"/>
<script
src="http://api.simile-widgets.org/exhibit/2.2.0/exhibit-api.js"
type="text/javascript"></script>
As you can notice the sample.json is a file local to my computer.
Now this works perfectly well.
However, when I make it a remote location, I get an error saying that
my JSON has errors= "<blank>".
That is when I do something like this,
<link
rel="exhibit/data" type="application/json"
href="*http://127.0.0.1:8000/samples/sample.json*"/>
<script
src="http://api.simile-widgets.org/exhibit/2.2.0/exhibit-api.js"
type="text/javascript"></script>
It doesnt work.
Both *http://127.0.0.1:8000/samples/sample.json* and *sample.json*
have the same data. I have simply copied and pasted the data into
sample.json.
Am i doing something wrong?
I have attached sample.json with this thread.
I have more than 2000 records (I hope Exhibit doesnt have any limit on
this)
--
You received this message because you are subscribed to the Google
Groups "SIMILE Widgets" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/simile-widgets/-/ktxhyTOfvloJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en.