aspose file tools*
The moose likes Struts and the fly likes onchange event is not working in mozilla when I am using <ajax:select> tag in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "onchange event is not working in mozilla when I am using <ajax:select> tag in JSP" Watch "onchange event is not working in mozilla when I am using <ajax:select> tag in JSP" New topic
Author

onchange event is not working in mozilla when I am using <ajax:select> tag in JSP

Srikanth Batchu
Greenhorn

Joined: Apr 02, 2009
Posts: 2
JSP code is-

<html:select styleId="deductFrequency" property="deductFrequency" style="width:200px">
<htmlption value=""><fmt:message bundle="${ SessionBean.labelsBundle }" key="dropdown.selectOne" /></htmlption>
<htmlption value="0015"> <fmt:message bundle="${ SessionBean.labelsBundle }" key="voluntaryDeduction.onetime" /></htmlption>
<htmlption value="0014"> <fmt:message bundle="${ SessionBean.labelsBundle }" key="voluntaryDeduction.rectime" /></htmlption>
</html:select>



<html:select styleId="deductCode" property ="deductCode" style="width:200px" >
<htmlption value=""><fmt:message bundle="${ SessionBean.labelsBundle }" key="dropdown.selectOne" /></htmlption>
</html:select>


<ajax:select
baseUrl="${contextPath}/voluntarydynamicdropdown.do"
source="deductFrequency"
target="deductCode"
parameters="employeeId={emplid},infotype={deductFrequency}"
postFunction="toggleRow"
/>


And in the above code, when the user selects a value from "deductCode" drop-down box, the above shown <ajax:select> tag must be automatically triggered and invoke the "voluntarydynamicdropdown.do" action mapping in the struts-config.xml file. And after that, the action class which is specified in the action mapping will be executed and fetches the values that must be populated in the second drop down list- "deductCode". That action class file is defined as shown below- public class DynamicDropDownUtil extends BaseAjaxAction { }.

But the above functionality is working fine in IE, but not working in Mozilla. In mozilla when I am selecting the value from the 1st drop down box, nothing is happening. The control is even not going to the java file- "DynamicDropDownUtil.java".

I don't know why this is not happening in Mozilla only.


Please help me out. It is very important issue to solve immediately. Thank you.


Best Regards,
Srikanth Batchu
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This doesn't seem to be a Struts issue, but a browser or whatever that Ajax tag library is you're using.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: onchange event is not working in mozilla when I am using <ajax:select> tag in JSP