Solved! Just to let everyone know, please do not bother to reply. The solution 
was to fix the JSON file and I was trying to find out how the html file will 
fix it. Oh well.

  ---ajay

----- Original Message ----
From: Ajay <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, March 6, 2008 1:50:24 AM
Subject: Exhibit: How to get a URL into a TabularView

Hello,

I saw Exhibit today and have been playing with it for a few hours. I have been 
unable to make the following work, namely get a url-link work within a 
TabularView.

Here is a sample JSON data:

-----------------------
{
    "items" :      [
        {
            "Name" :                 "Name 1",
            "Cycle" :                      "5",
            "Phenotypic" :                 "no",
            "Date" :          "2007-04-23T00:00:00+00:00",
            "Number" :               "050771",
            "label" :                      "Doe, John",
            "Track" :                 "yes",
            "Number_url" :       "http://www.google.com";               
        },
        {
            "Name" :                 "Name 2",
            "Cycle" :                      "6",
            "Phenotypic" :                 "no",
            "Date" :          "2007-10-02T00:00:00+00:00",
            "Number" :               "056942",
            "label" :                      "Doe, Janel",
            "Track" :                 "yes",
            "Number_url" :       "http://www.cnn.com";               
        },
-------------------------------------------
Here is what I want:

   * I want a table with some of the fields in the data file above and 
especially the .Number field to have the link provided in .Number_url. *

Here is a snippet of the html file paralleling what is there in the Tutorial:
--------------------------------------
 <body>
    <h1>My Data Table</h1>
    <table width="100%">
        <tr valign="top">
            <td>
        <div ex:role="exhibit-viewPanel">
                <div ex:role="exhibit-view"
             ex:viewClass="Exhibit.TabularView"
             ex:columns=".label, .Name, .Number, .Phenotypic"
             ex:columnLabels="Provider, Name, Number, Phenotypic?"
             ex:columnFormats="list, list, list, list"
             ex:rowStyler="zebraStyler"
             ex:sortColumn="2"
             ex:sortAscending="true">
         </div>
        </tr>
    </table>
 </body>
---------------------------

I have been through the examples (in fact the Senators example in the website 
has what I want) and tried many variations with <div> <span> <table> to figure 
out why or how the Senators example works or to make my example work, and have 
been unable to make any progress.

If someone could please point me to what I am missing in the above html snippet 
that would be very very nice.

Thank you very much and this promises to be a very useful tool for a text book 
I am trying to write for elementary school kids.

   ---ajay






      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general





      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to