Thanks for the help. It works now!> Hi,I have noticed that TimePlot now 
supports IE 6 & 7 and FF 2, that's > great! However, I am having some 
difficulty with both FF and IE. I have > it running "local", so I have followed 
the directions posted on the web > for "How to run timeplot off-line", but I 
get the following errors on FF:> > $.trim is not a functionThis is the main 
issue.  It's likely you're using another javascript library that's taken over 
the '$' variable.  I'm not that familiar with that world, but wiser heads than 
mine have suggested ways around it.I'd commit and publish a fix, but we're in 
the middle of some other issues right now.  If you want to apply a patch to 
your source now to get the fix, this is what will do it (be sure to re-run the 
bundling operation using 'ant bundle' - or set your call to the timeplot-api.js 
to include ?bundle=false):Index: 
src/webapp/api/scripts/timeplot.js===================================================================---
 src/webapp/api/scripts/timeplot.js  (revision 9230)+++ 
src/webapp/api/scripts/timeplot.js  (working copy)@@ -406,7 +406,7 @@          
// using jQuery.  note we calculate the average padding; if your          // 
padding settings are not symmetrical, the labels will be off          // since 
they expect to be centered on the canvas.-        var con = $('#' + 
this._containerDiv.id);+        var con = 
SimileAjax.jQuery(this._containerDiv);          this._paddingX = 
(parseInt(con.css('paddingLeft')) +                            
parseInt(con.css('paddingRight'))) / 2;          this._paddingY = 
(parseInt(con.css('paddingTop')) +Index: 
src/webapp/api/scripts/sources.js===================================================================---
 src/webapp/api/scripts/sources.js   (revision 9230)+++ 
src/webapp/api/scripts/sources.js   (working copy)@@ -45,7 +45,7 @@          
for (var i = 0; i < data.length; i++){              var row = data[i];          
    if (row.length > 1) {-                var dateStr = $.trim(row[0]);+        
        var dateStr = SimileAjax.jQuery.trim(row[0]);                  var date 
= parseDateTimeFunction(dateStr);                  if (date) {                  
    var evt = new 
Timeplot.DefaultEventSource.NumericEvent(date,row.slice(1));-- Ryan Lee         
         [email hidden]MIT CSAIL Research Staff  
http://simile.mit.edu/http://people.csail.mit.edu/ryanlee/
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to