You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/12/05 06:47:35 UTC
[jira] Resolved: (STR-3112) Generated javascript is wrong to set
focus on control that is of array
[ https://issues.apache.org/struts/browse/STR-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict resolved STR-3112.
--------------------------------
Resolution: Duplicate
Assignee: Paul Benedict
> Generated javascript is wrong to set focus on control that is of array
> ----------------------------------------------------------------------
>
> Key: STR-3112
> URL: https://issues.apache.org/struts/browse/STR-3112
> Project: Struts 1
> Issue Type: Bug
> Components: Taglibs
> Affects Versions: 1.0.1
> Environment: All
> Reporter: Hasan Ceylan
> Assignee: Paul Benedict
> Priority: Minor
> Fix For: 1.3.10
>
> Attachments: struts_patch.txt
>
>
> I have a form with radio buttons on it. focus control is set to radio property and focus index is set to 0.
> Generated javascript is below. As in this case focus control is array on input objects (radios), styşe check yields to a javascript error...
> </form>
> <script type="text/javascript" language="JavaScript">
> <!--
> var focusControl = document.forms["accountForm3"].elements["active"];
> if (focusControl.type != "hidden" && !focusControl.disabled && focusControl.style.display != "none") {
> focusControl[0].focus();
> }
> // -->
> </script>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.