Categories > TinyButStrong general >

Parameter ope doesn't support value 'html'.

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Anthony
Date: 2011-04-12
Time: 14:26

Parameter ope doesn't support value 'html'.

I am trying to populate an html select box according to the example on this page: http://www.tinybutstrong.com/examples.php?e=form&m=source.

<select name="x_type" class="normal" id="select2">
  <option value="[typeblk.val]">[typeblk.key;block=option]</option>
  <option>[onshow.x_type;ope=html;select]</option>
</select>

I get the error that parameter ope doesn't support value 'html'. So what is the best way for TBS to handle population of html select boxes? I am builing an array in the php controller which is to fill html select. Also, I need to specify a different css class for every other html <option> tag within the <select>.

My original thought was something along this line, which worked, but after looking at the example referenced above, I thought there might be a better way.

<option class="option_line" value="President"[onshow.contactname;if [val]='President';then ' selected="selected"';else '';noerr]>President</option>
<option class="alt_option_line" value="Vice-President"[onshow.contactname;if [val]='Vice-President';then ' selected="selected"';else '';noerr]>Vice-President</option>
By: Anthony
Date: 2011-04-12
Time: 14:48

Re: Parameter ope doesn't support value 'html'.

Ok, I see I need to include the plugin as spoken of here: http://www.tinybutstrong.com/plugins.php?help#plugin_html. I didn't find it referenced on the manual page (http://www.tinybutstrong.com/manual.php), which would be nice, but after searching around there, I saw it on the plugin page.