You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dave Newton (JIRA)" <ji...@apache.org> on 2010/08/13 13:14:16 UTC
[jira] Closed: (WW-3479) Javascript not working in sx:div
[ https://issues.apache.org/jira/browse/WW-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Newton closed WW-3479.
---------------------------
Resolution: Won't Fix
The Dojo tags are deprecated.
You can ask questions regarding their use on the Struts 2 user mailing list.
Thanks!
> Javascript not working in sx:div
> --------------------------------
>
> Key: WW-3479
> URL: https://issues.apache.org/jira/browse/WW-3479
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Dojo Tags
> Affects Versions: 2.1.8.1
> Environment: In Tomcat 6
> Reporter: Sudhir Kumar
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> Hi,
> Please help me in the following issue.
> The issue in Javascript is not working in the included page in sx:div. Below is the code
> In certification.jsp if I click on Edit link it is not calling the javascript function editCertification()
> I am using struts2-dojo-plugin-2.1.8.1.jar
> struts2-core-2.1.8.1.jar
> welcome.jsp
> ------------------
> <sx:div id="two" label="Tab 2" href="certificationLink.action" preload="false" executeScripts="true" separateScripts="false"> </sx:div>
> struts.xml
> --------------
> <action name="certificationLink" class="com.lnt.pms.action.AddDeleteCertificationAction"> <result name="success" >/pages/certification.jsp</result> </action>
> certification.jsp
> ---------------------
> <script>
> function editCertification(userCertificationId){
> var url = "editCertification.action?certificationId="+userCertificationId;
> var myAjax = new Ajax.Request(
> url,
> {
> method: 'post',
> onComplete: fetchSuccess
> }
> }
> function fetchSuccess(originalRequest){
> var result = originalRequest.responseText.evalJSON();
> document.getElementById("certificationName").value=result.certificationList[0].certificationName;
> }
> </script>
> <td class="nowrap"><s:set id="userCertificationId" value="userCertificationId" />
> <s:a href="javascript:editCertification('%{userCertificationId}')" theme="xhtml">Edit</s:a>
> </td>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.