Tony, The ajax response handler tries to wrestle the environment to behave as if the request was a normal one, preserving many things including the PageRenderResponse service. When using this service in an ajax context, scripts added via addScript() are packaged up in a json object response resulting in reply.script. Be warned that if your request returns something like a component that requires it's own resources (like external JS or CSS), those resources will not be carried over and thus such components won't work correctly (unless you apply this patch: https://issues.apache.org/jira/browse/TAPESTRY-2390).
chris TonyTheFish wrote: > In tapestry.js (5.0.12-SNAPSHOT) in the zone processing stuff there is a > 'reply.script' - if I read the code correctly what happens when you do a > zone update is that reply.content is updated into the zone div and then, if > present, reply.script is evaluated. I really want to find out how to place > a script into that object so that I can run some special effects on > successful submission of my form. Since we are returning the zone in the > onSuccess() I would love to be able to write > 'myZone.addUpdateScript(myScript); return myZone()'. > > Life is rarely that simple but is there any way I can accomplish the same > thing? > > > -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]