That seems promising so I hope somebody will comment further.

Seems like it ought to be possible without the HTML table though, using a
json format.

> There is a way to put your data in an HTML <table> and then import it
> using this importer
> 
>   
> http://static.simile.mit.edu/exhibit/api-2.0/scripts/data/importers/html-table
> -importer.js
> 
> It goes something like this
> 
>   <link rel="exhibit/data" type="text/html" href="#the-table" />
> 
>   ...
> 
>   <table id="the-table" ex:type="Person">
>      <tr>
>          <th>label</th>
>          <th>position</th>
>          <th ex:valueType="date">join</th>
>      </tr>
>      <tr>
>          <td>David Huynh</td>
>          <td>researcher</td>
>          <td>2001-09-01</td>
>      </tr>
>      ...
>   </table>
> 
> There's more to it but I don't remember specifics. Johan and Gabriel
> know more about it than I do.
> 
> David
> 
> Bruce Robertson wrote:
>> Is is possible to make Exhibit work with the JSON data included in the HTML
>> file?
>> 
>> What I would really prefer for some applications is a way to specify the
>> JSON data inside within the HTML file without referencing an external file.
>> 
>> Something like this except what would I use instead of "link"?
>> 
>> <html>
>> <head>
>> <title>MIT Nobel Prize Winners</title>
>> <link type="application/json" rel="exhibit/data"
>>  data= {"items" : [
>> {type : "Nobelist",
>> label : "Burton Richter",
>> discipline : "Physics",
>> shared : "yes",
>> "last-name" : "Richter",
>> "nobel-year" : "1976",
>> 
>> ....
>> 
>> } ] }
>> />
>> <script src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js";
>> type="text/javascript"></script>
>> etc
>> 
>> _______________________________________________
>> General mailing list
>> [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