You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nate Drake (JIRA)" <ji...@apache.org> on 2007/05/18 17:53:42 UTC
[jira] Commented: (WW-1929) submit ajxs form is not working for FF
and IE
[ https://issues.apache.org/struts/browse/WW-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41018 ]
Nate Drake commented on WW-1929:
--------------------------------
Please post your question to the Struts Users mailing list.
http://www.nabble.com/Struts---User-f206.html
> submit ajxs form is not working for FF and IE
> ---------------------------------------------
>
> Key: WW-1929
> URL: https://issues.apache.org/struts/browse/WW-1929
> Project: Struts 2
> Issue Type: Bug
> Components: Actions, Views
> Affects Versions: 2.0.6
> Environment: windows xp
> Reporter: dhilip mandava
> Priority: Critical
>
> <form action="searchReceiverAction.do">
> <tr><td>ID</td><td><s:textfield label="ID" key="id" cssClass="textbox" theme="simple"/></td><td>User</td><td><s:select key="userId" list="%{#attr.userList}" label="User" listKey="userId" listValue="userName" cssClass="selectbox" theme="simple"></s:select></td><td>Model</td><td><s:select key="modelId" list="%{#attr.modelList}" label="Model" listKey="modelId" listValue="modelName" cssClass="selectbox" theme="simple"></s:select></td> <td><s:submit label="GO" value="GO" cssClass="button" theme="ajax" targets="listDiv"/></td></tr>
> </form>
>
> Above code is working fine for IE6 but not for FF
> i changed code like below for working in FF, but now it is not working in IE6 (showing undefined in ajax div container)
> <script language="javascript" type="text/javascript">
> dojo.event.topic.subscribe("/after", function(data, type, request){
> if(type == "load") {
> alert(data);
> dojo.byId('listDiv').innerHTML = data
> }
> });
> </script>
> <s:url id="ajaxSearch" value="/searchReceiverAction.do"/>
> <form id="searchForm">
> <table cellpadding="2" cellspacing="2" border="0" bgcolor="#C0C7CF">
> <tr><td>ID</td><td><s:textfield label="ID" key="id" cssClass="textbox" theme="simple"/></td><td>User</td><td><s:select key="userId" list="%{#attr.userList}" label="User" listKey="userId" listValue="userName" cssClass="selectbox" theme="simple"></s:select></td><td>Model</td><td><s:select key="modelId" list="%{#attr.modelList}" label="Model" listKey="modelId" listValue="modelName" cssClass="selectbox" theme="simple"></s:select></td>
> <s:submit type="submit" label="GO" value="GO" cssClass="button" theme="ajax" template="submit1.ftl" notifyTopics="/after" href="%{ajaxSearch}" formId="searchForm" showLoadingText="false" targets="listDiv"/></tr>
> </table>
> </form>
> please send me solution for this problem, as soon as possible.....very urgent
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.