Yayo wrote:
Hi,i'd like to discuss with you for in case you've found it before. I've got a div <div id="result">...</div> that I fill with my ajax results so I present a list inside of the result div, then user clicks on an element and the response goes inside for editing. Then in the edition details I've added two buttons, a submit and a cancel like this: <s:submit id="submit" name="submit" targets="result" key="accept" theme="ajax" action="save-blog"/> <s:submit id="cancel" name="cancel" action="edit-blog-cancel" theme="ajax" onclick="form.onsubmit=null" key="cancel" targets="result"/> And I've found that the one I've marked with cancel button never executes the cancel method in my action unless I delete the theme="ajax" attribute... ¿May this be a bug?
If your ajax result itself includes javascript (such an an ajax submit), then you need to use the separateSripts and executeScripts attributes of the div/submit that loads it. Dojo is responsible for parsing your ajax result, looking for scripts, inserting the html into the dom and then executing those scripts.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

