Isaiah, this complaint has nothing to do with syntax. It is happening
because your data has a different url prefix than your html page---for
example, one is file: and the other http:, or perhaps they are on two
different domains. For security reasons, browsers will not let code in
one prefix (the exhibit html) fetch urls from another prefix. Look at
the Same-origin policy in wikipedia.
There are 3 ways to fix this:
1) put the data and html in the same place
2) learn how to use jsonp---you can fetch data using jsonp in exhibit
3) learn how to use CORS (if you have the appropriate administrative
rights for your servers)
On 7/16/2015 1:08 AM, Isaiah Elias wrote:
Hi everyone
I have been working with exhibit for a few days now, and I havent been
able to get my data read into the Exhibit database. I don't know if
this is a problem with my Exhibit syntax, or whether it is a problem
involving Exhibit at all, but I am desperate now. The syntax in my
JSON file is not the problem. I even have tried copying the example
/2008 Election Decision/ off Simile's demos, all files included, and
run that but it won't work either.
This is the error I am getting with respect to my .json or .js file
containing my data:
/Cross origin requests are only supported for protocol schemes: http,
data, chrome, chrome-extension, https, chrome-extension-resource.
/
Can anyone tell me what may be happening?
Thanks,
Isaiah
--
You received this message because you are subscribed to the Google
Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SIMILE
Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.