The key part of zone updater that does what you want is this: void afterRender() { String url = resources.createEventLink(event, context).toAbsoluteURI(); ... renderSupport.addScript("%sZoneUpdater = new ZoneUpdater(%s)", prefix, spec.toString()); }
This is the interface from Tapestry to Javascript. The string in the addScript call is literal javascript (except for the %s) that's added to the bottom of the page. You are basically looking for the right url to hit from javascript that will trigger your Tapestry method. createEventLink generates this url ('createEventLink("register", "placeholderforputtingstudentid")'), addScript will pass it to the Javascript, and in there "zoneManager.updateFromUrl" proceeds to ping that url. Another way to ping urls from js is with Prototype: http://www.prototypejs.org/api/ajax/request -- View this message in context: http://tapestry-users.832.n2.nabble.com/Struggling-with-Ajax-in-T5-tp5970312p5976916.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org