I don't think so. I believe the rule of thumb is to use JavaScriptSupport during render, and use an AJAX callback during partial page render.
IIRC, the JavaScriptSupport environmental is not available when you're handling an AJAX component event request. On 13 Nov 2014, at 6:08 pm, Chris Poulsen <mailingl...@nesluop.dk> wrote: > can't you just use javascriptsupport to require and invoke your js module > function? > > -- > Chris > > On Thu, Nov 13, 2014 at 6:34 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >> Have you had a look at these two: >> >> >> http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/modal/1 >> >> http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/reusablemodal/1 >> >> Do they fit your scenario? >> >> On 13 Nov 2014, at 3:40 pm, Paul Stanton <pa...@mapshed.com.au> wrote: >> >>> Hi Geoff, >>> >>> I have found your examples invaluable in learning some of the basics of >> this (and other) concepts. I can't thank you enough >>> >>> .. the only thing I can see is missing currently is the example I asked >> about in the previous mail: >>> >>> Basically, how do I interact with a js module instance after it is >> created? >>> >>> pretend some server-side state changes between afterRender and >> onSomeEvent, and the client needs to react accordingly. >>> >>> jss.addScript is deprecated, so I "shouldn't" be telling the client to >> execute script apparently... >>> >>> cheers, p. >>> >>> On 13/11/2014 2:36 PM, Geoff Callender wrote: >>>> do these examples cover the situations you are describing? >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org