Gabriel Durazo wrote:
> I presume you mean you changed the line in exhibit-api.js that was 
> something like:
>
> var url = "http://static.simile.mit.edu/ajax/api-2.0/simile-ajax-api.js";; 
>
> to a relative local reference? Something like: 
> "../../ajax/api/simile-ajax-api.js" instead? 
>
> That didn't work for me either, but putting in an /absolute/ local 
> reference starting from root (not '~'), (i.e. 
> "/Users/gabe/......./simile-ajax-api.js ") did.
The reason the relative URL doesn't work is because it's relative to the 
HTML file, not exhibit-api.js.

David

> Hope this helps. If not, maybe one of the exhibit masters on the list 
> can help more.
>
> ~Gabe
>
>
> On Jun 28, 2007, at 3:06 PM, Thomas Belote wrote:
>
>> I am attempting to host the Exhibit and Simile AJAX javascript code
>> locally. The Exhibit code seems to work just fine by including a locally
>> hosted copy. But when I change the url for Simile AJAX in exhibit-api.js
>> to be a relative url instead of the static.simile.mit.edu url I get the
>> following javascript error:
>>
>> job.js (line 246)
>> elmt has no properties
>> _createDOMFromTemplate(Document exhibit, Object, null)dom.js (line 246)
>> createDOMFromTemplate(Document exhibit)dom.js (line 171)
>> constructBrowsePanel(Object _configuration=Object _exporters=[5],
>> div#exhibit-browse-panel.exhibit-ui-protection,
>> "http://static.simile.mit.edu/graphics/logos/exhibit/exhibit-small-Silver.png";)bundle.js
>>  
>> (line 76)
>> _initializeUI()bundle.js (line 70)
>> BrowsePanel(Object _configuration=Object _exporters=[5],
>> div#exhibit-browse-panel.exhibit-ui-protection, Object)bundle.js 
>> (line 68)
>> _Impl(div#exhibit-control-panel,
>> div#exhibit-browse-panel.exhibit-ui-protection, div#exhibit-view-panel,
>> Object)bundle.js (line 143)
>> createFromFiles(Object controlDiv=div#exhibit-control-panel)bundle.js
>> (line 142)
>> createFromFiles(["https://192.168.1.196/dswc/cpadmin.php/vfs/json";],
>> undefined)bundle.js (line 138)
>> create(undefined, undefined)bundle.js (line 137)
>> f()bundle.js (line 97)
>> [Break on this error] elmt.setAttribute(attribute, value);
>>
>> Also, Firefox tries to load a document named:
>> %5Bobject%20HTMLDocument%5D
>>
>> This is the value of the templateNode variable passed into
>> SimileAjax.DOM._createDOMFromTemplate function that is failing.
>>
>> The page works fine though if I used the remotely hosted Simile AJAX. I
>> have tried locally hosting a copy of Simile AJAX from the svn trunk 
>> and a copy from
>> www.simile.mit.edu.
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Tom
>> _______________________________________________
>> General mailing list
>> [email protected] <mailto:[email protected]>
>> http://simile.mit.edu/mailman/listinfo/general
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to