I don't have scripts in my results but that don't changes the fact that the
action configured in the cancel button never gets executed...

On Mon, May 12, 2008 at 4:57 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:

> 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]
>
>


-- 
"Sit tibi terra levis"

http://yayocaturas.blogspot.com/

Reply via email to