Categories > TinyButStrong general >

Select - endless loop

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Peter
Date: 2011-06-06
Time: 15:24

Select - endless loop

Hello,
i am try to select one radio button with the following code:

TPL:
[selection;ope=html;select=answer[option]]
    <table>
        <!-- [onshow_2;block=table;when [frage_sub1.#]-+8] -->
        <tr>
            <td >
            <input type="radio" name="answer[option]" value="[frage_sub1.$]" />
            <br />
            [frage_sub1.Name;block=td]
            </td>
        </tr>
    </table>
PHP:
...
            $tpl->MergeField('selection', $selectwert);
...

TBS hangs in an endles loop, what i am doing wrong? I can't see it...
Is there any debugging in there, i can activate?

Thanks Peter
By: Skrol29
Date: 2011-06-06
Time: 22:04

Re: Select - endless loop

Hi,

Unfortunately there is no debug mode for this plug-in.
Try by adding the property "selbounds" as described in the manual.
Try also by escaping the radio name.

Like this:
<table>
  <!-- [onshow_2;block=table;when [frage_sub1.#]-+8] -->
  [selection;ope=html;select='answer[option]';selbounds=table]
  <tr>
   <td >
   <input type="radio" name="answer[option]" value="[frage_sub1.$]" />
   <br />
   [frage_sub1.Name;block=td]
   </td>
  </tr>
</table>
By: Peter
Date: 2011-06-07
Time: 09:25

Re: Select - endless loop

Yeah, selbounds was the solution.
Because i had another <input at the bottom for the other display method. Onshow get called after that and so it tries to merge both.

Thanks for yor help
Peter