3.2.0

how to make a group contain a select

<span id="group1" style='width:400px;'>
<select style='width:400px;' id="province_zone" name="provinceSel">
<option value="">select province</option>
</select>
</span>

<script>
var group = new AW.UI.Group;
group.setId("group1");
group.setControlText("provine select");
group.setContent(?????????);
document.write(obj);
</script>

how can I use setContent or other method to make select inside group?
thank you very much!
chengshwu
November 19,
Read:
http://www.activewidgets.com/javascript.forum.10768.8/newbie-adding-grid-inside-a.html

And you can do something like:
<script>
var select_in_var = '<select style="width:300px;" id="province_zone" name="provinceSel"><option value="">select province</option></select>';

var group = new AW.UI.Group;
group.setId("group22222");
group.setControlText("province select");
group.setContent('html', select_in_var );
document.write(group);

var button = new AW.UI.Button;  
button.setControlText('Show contents of group') 
button.setId('a01'); 
  
button.onControlClicked = function(){  
alert( group.getContent('html') );
}   
document.write(button);  
</script>
Cs
November 19,

This topic is archived.

See also:


Back to support forum