[ 
https://issues.apache.org/jira/browse/SLING-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved SLING-656.
------------------------------------
    Resolution: Won't Fix

> sling.wizard() fails when form contains fieldset
> ------------------------------------------------
>
>                 Key: SLING-656
>                 URL: https://issues.apache.org/jira/browse/SLING-656
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>         Environment: Browser: Firefox 3 on Windows, Sling bundled with CRX 
> Quickstart
>            Reporter: Michael Marth
>            Priority: Major
>
> I got a .jst with a form that I want to fill out using Sling.wizard()
> This throws a js error when the form contains fieldsets 
> (http://www.w3.org/TR/html401/interact/forms.html#h-17.10)
> sample html code:
>                                       <form class="hform" method="POST" 
> action="/content/myblog/posts/*">
>                                               <fieldset>
>                                               <legend>Post form</legend>
>                                                       
>                                                               
> <p><label>Title</label>
>                                                               <input 
> name="title" type="text" size="80"></p>
>                                                               
>                                                               
> <p><label>Body</label>
>                                                               <textarea 
> name="posttext" cols="40" rows="5"></textarea></p>
>                                                               
>                                                               <input 
> type="hidden" name="created"/> 
>                                                               <input 
> name=":redirect" type="hidden" value="/content/myblog/posts.admin.html"/> 
>                                                               
>                                               </fieldset>
>                                                <input type="submit" 
> value="Post" class="button">
>                                       </form>
>                                       <script>Sling.wizard();</script>
> Error in Firebug:
> a is undefined
> in:
>  while (elems.length > i) {
> 306 var elem=elems[i];
> 307 var a=elem.name;
> --> 308 if (a.indexOf("./")==0) {
> 309 formfieldprefix="./";
> 310 break;
> 311 }
> 312 i++;
> 313 }
> same form works without fieldsets



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to