How can one add events to s40 calendar?
Unfortunately Series 40 Web Apps does not offer an API to access calendar.
Haven't tried it, but linking to an .(i)cal file could work. You would need to use a server-side script which creates the .(i)cal file on-demand.