David,
could you help me?
I'm a little bit stuck ?!

the following script seems to be correct.
if  links[j].rel == "http://schemas.google.com/gCal/2005/webContent";
isn't true anymore, indeed the webContent object won't be never
filled!

but I stay stuck here... could you help me?
I really don't understand where is the problem...
I have a calendar public, an xml feed from it, a script (the same that
in the link above where it works) ... and it doesn't :-(


function loadGDataCallback(json) {
  var entries = json.feed.entry;
  var timelinerEntries = [];
  for (var i = 0; i < entries.length; ++i) {
    var entry = entries[i];
    var when = entry["gd$when"][0];
    var start = convertFromGDataDate(when.startTime);
    var end = convertFromGDataDate(when.endTime);
    var webContent;
    var links = entry.link;
    for (var j = 0; j < links.length; ++j) {
      if (links[j].rel == "http://schemas.google.com/gCal/2005/
webContent")
          {
        webContent = links[j];
      break;
      }
    }
    var title = webContent.title;
    var link = webContent["gCal$webContent"].url;
    var icon = webContent.href;
    var description = '<img src="' + link + '">';
    timelinerEntries.push(new Timeline.DefaultEventSource.Event(
      start,
      null, // end - when not set, event displayed with icon (looks
better)
      null, // latestStart
      null, // latestEnd
      false, // not isDuration
      title,
      description,
      null, // image
      null, // link - destination when clicking on title
      icon,
      undefined, // color
      undefined  // textColor
    ));
  }
  gEventSource.addMany(timelinerEntries);
};



On 23 déc, 20:31, David Huynh <[email protected]> wrote:
> I'd recommend using Firebug for Firefox to debug. It shows
>
>     webContent is undefined - test (line 25)
>
> David
>
> julienb wrote:
> > Hi,
>
> > I just discovered simile timeline could be fed by JSON flow from any
> > sources...
>
> > I did that:http://www.julienbayle.net/test/
> > based on the 
> > template:http://code.google.com/intl/fr/apis/gdata/samples/cal_simile_sample.html
>
> > but mine doesn't work :-(
>
> > could someone help me ??
>
> > I shared my calendat to everyone
> > I did several dummy events etc etc
>
> > julien
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to