Dear David, Thanks for the quick reply. It is working like a charm. I presume I can checkout the latest sources from head, in which this bug is fixed.
Thanks for the quick response. Cheers, Ashutosh > Date: Sun, 23 Sep 2007 18:21:03 -0700 > From: David Huynh <[EMAIL PROTECTED]> > Subject: Re: ex-if example > To: General List <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Ashutosh, > > That was a bug and I think I've fixed it. Could you refresh your page in > the browser (you might have to hold down Shift) and see if your lens > works as expected? > > David > > Ashutosh Chauhan wrote: > > Dear David, > > > > Thanks for your time. But I am still facing the problem. Attached > > below is the simplified version of the nobelists example which I tried > > to get working. What I want to achieve here is: > > > > if (nobelyear > 1975) > > print "young scientist" > > else > > print "old scientist" > > > > But I always get "old scientist" as the output. > > > > Html I used is: > > > > <html> > > <head> > > <link href="nobelists.js" type="application/json" rel="exhibit/data" /> > > <script > src="http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js" > > type="text/javascript"></script> > > </head> > > <body> > > <table width="100%"> > > <tr valign="top"> > > <td ex:role="viewPanel"> > > <table ex:role="lens" class="nobelist"> > > <tr> > > <td> > > <div> > > <span ex:if=".nobelyear > 1975"> > > <span>young scientist</span> > > <span>old scientist</span> > > </span> > > <span ex:content=".nobelyear" > > class="year"></span> > > </div> > > </td> > > </tr> > > </table> > > </div> > > <div ex:role="view" ex:orders=".nobelyear" > > ex:possibleOrders=".label"> > > </div> > > </td> > > </tr> > > </table> > > </body> > > </html> > > > > > > And the nobelists.js I used is: > > > > { > > "items" : [ > > { type : "Nobelist", > > label : "George A. Akerlof", > > "nobelyear" : 2001, > > }, > > { type : "Nobelist", > > label : "William Shockley", > > "nobelyear" : 1956, > > } > > ], > > "properties" : { > > "nobelyear" : { > > "valueType" : "number" > > } > > } > > } > > > > Please let me know where I am going wrong here. > > > > Cheers, > > Ashutosh > > > > _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
