2 Replies Latest reply: Jan 14, 2010 6:48 AM by Phil_W RSS

    Bug with Spry validation form fields

    Phil_W Community Member

      Hi,

       

      There's a slight bug when inserting Spry validation textfields, password fields, chedckbox fields etc for a webpage that has Spry regions using the Spry data function functionality of Spry

       

      If I have

       

      <div id="pv1" spry:region="pv1" class="SpryHiddenRegion">
                    <table>
                      <tr>
                        <th id="T_CAT">Forum</th>
                        <th spry:sort="M_NAME" id="M_NAME">Who</th>
                        <th spry:sort="T_DATE" id="T_DATE">Posted</th>
                        <th spry:sort="T_SUBJECT" id="T_SUBJECT">Subject </th>
                        <th spry:sort="T_LAST_POST" id="T_LAST_POST">Last Post</th>
                        <th spry:sort="T_REPLIES" id="T_REPLIES">Replies</th>
                      </tr>
                      <tr spry:repeat="pv1" class="{function::myclass}" id="{TOPIC_ID}" onclick="gotoTopic('{function::title}','{TOPIC_ID}','{FORUM_ID}');" spry:hover="other">
                        <td id="climb">{function::myForum}</td>
                        <td>{M_NAME}</td>
                        <td>{function::topicDate}</td>

       

      then insert a validation widget it amends the markup to be as below

       

      <div id="pv1" spry:region="pv1 function function" class="SpryHiddenRegion">
                    <table>
                      <tr>
                        <th id="T_CAT">Forum</th>
                        <th spry:sort="M_NAME" id="M_NAME">Who</th>
                        <th spry:sort="T_DATE" id="T_DATE">Posted</th>
                        <th spry:sort="T_SUBJECT" id="T_SUBJECT">Subject </th>
                        <th spry:sort="T_LAST_POST" id="T_LAST_POST">Last Post</th>
                        <th spry:sort="T_REPLIES" id="T_REPLIES">Replies</th>
                      </tr>
                      <tr spry:repeat="pv1" class="{function::myclass}" id="{TOPIC_ID}" onclick="gotoTopic('{function::title}','{TOPIC_ID}','{FORUM_ID}');" spry:hover="other">
                        <td id="climb">{function::myForum}</td>
                        <td>{M_NAME}</td>
                        <td>{function::topicDate}</td>

       

      I then have to remove the extra function text added to my spry region markup.

       

      Cheers

       

      Phil