struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: ajax - Submit a form
Date Mon, 21 May 2007 19:58:09 GMT
Use a regular submit (no ajax) and see if you values are submitted.

musachy

On 5/21/07, Mansour <mansour77@yahoo.com> wrote:
>
> I still don't what wrong with this. I fixed few problems but still can
> not get the javascript function to execute when the request is being
> made. It send the request but the values for the form are not populated.
> Hopefully someone can find out what's wrong with my code.
>
>
>
>
> <script type="text/javascript" language="javascript">
> dojo.event.topic.subscribe("/disableAll" , function(data, type, request) {
>   showMessage();
> });
> </script>
>
> <table>
>     <tr>
>         <td><s:a href="javascript://"
> onclick="changeState(true);">edit</s:a>
>         <td><s:url id="ajaxSubmit" value="/updateAccount.action" ></s:url>
>
>         <s:submit theme="ajax" href="%{ajaxSubmit}" formId="MyData"
>         notifyTopics="/disableAllfd" > save </s:submit>
>
>          </td>
>     </tr>
> </table>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message