zepheira / backstage

The server-side sub-project of Exhibit3
55 stars 16 forks source link

Unable to run demo on local BACKSTAGE #36

Open sanchezw opened 12 years ago

sanchezw commented 12 years ago

Hi,

I have install exhivi3 as described in [1]. The installation was successful. The I have uploaded demo data (from backstage/demos/sweden-europeana/europeana-swe.json) using the instruction from [2]. I am able to browse the imported data using [3]. The Then I have updated the index.html with the following information:

<link href="http://localhost:8181/backstage/data/disk/55ab6c5a" rel="exhibit/data" /> 

<script src="http://localhost:8181/backstage/exhibit/api/exhibit-api.js?autoCreate=false&postLoad=true&js=http://localhost:8181/backstage/api/backstage-api.js"></script> 

I have the following error in the browser:

$ is not a function $(document).one("scriptsLoaded.exhibit", loadMe); - Line 150 of backstage-api.js

and: Operation is not supported

I have also set up DATABASE_DIR with absolute path to /home/myusername/dev/e3src/butterfly/databases.

I have the same error with and without this database variable.

I appreciate any help to solve this issue.

William

[1] https://github.com/zepheira/backstage/wiki/Building-backstage [2] curl -i -H "Content-Type: application/json" -X POST -T europeana-swe.json http://localhost:8181/backstage/data/disk [3] http://localhost:8181/backstage/data/disk/55ab6c5a

distobj commented 12 years ago

"$ is not a function" suggests there's a problem with loading or initializing jQuery, I think. Is your exhibit public?

sanchezw commented 12 years ago

it Is not public. fyi, I have installed all in centos and ubuntu and I have the same error.I have used chrome, firefox and ie with the same error. I appreciate any help.

distobj commented 12 years ago

I asked if it was public so I could have a look. If that's not an option, could you try distilling your exhibit down to something which could be shared but still demonstrates the problem? If not, I think the only option is for you do some debugging to see why $ is not being defined. Thanks.