Source: site.view [edit]
Function name: getPillItem
Arguments: CurLink
Description:
Page type: webl
Render function:  
Module: sandbox

Page source:

  var Result = "";
  var CurEventTitle = WubCall("getPillEventTitle", [CurLink]);
  Result = Result + CurEventTitle;
  Result = Result + "\r\n";

  var CurEventDescription = WubCall("getPillEventDescription", [CurLink]);
  Result = Result + CurEventDescription;
  Result = Result + "\r\n";

  var CurEventDate = WubCall("getPillEventDate", [CurLink]);
  Result = Result + CurEventDate;
  Result = Result + "\r\n";

  var CurEventLocation = WubCall("getPillEventLocation", [CurLink]);
  Result = Result + CurEventLocation;
  Result = Result + "\r\n";

  

  var loc = WubCall("geocode", [CurEventLocation]);
  var lat = (loc.lat ? "unknown");
  var long = (loc.long ? "unknown");

  Result = Result + lat;
  Result = Result + "\r\n";
  Result = Result + long;


  Result = Result + "____ \r\n";

  var res = [. label = CurEventTitle, addr = CurEventLocation, desc = CurEventDescription, date = CurEventDate .];
  if (lat != "unknown") and (long != "unknown") then
    res["lat"] := lat;
    res["long"] := long
  end;

  res;