Asked by:
Select DropDown Menu Item via WEBBROWSER

Question
-
Hi All
Please Help
Id like to select one of this item in this code (index 3 it is default)
<script src="js/select.js" type="text/javascript"></script>
<script src="js/browser.js" type="text/javascript"></script>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<input type="text" style="display:none;" name="groupId" value="10">
<table cellspacing="0" cellpadding="0" width="100%">
<tr height="100%">
<td>
<table cellspacing="0" cellpadding="0" height="100%">
<tr><td><img src="skins/blues/images/fld_tl_d.gif" alt=""/></td></tr>
<tr height="100%"><td><img src="skins/blues/images/fld_ml.gif" height="100%" width="6" alt=""/></td></tr>
<tr><td><img src="skins/blues/images/fld_bl_d.gif" alt=""/></td></tr>
</table>
</td>
<td width="100%">
<span class="select" customDropDown="1" size="1" name="groupIdDropDown" id="groupIdDropDown" textFieldName="groupId" onchange="groupByChange(this)">
<table class="v4_treeSelect formControlBorder noLeft " textClass="v4_treeShowSelectText" cellspacing="0" cellpadding="0"
onclick="doDropDown(this.parentElement);" onmouseover="highlightArrow(this);" onmouseout="lowlightArrow(this);">
<tr>
<td width="100%"> </td>
<td align="center" valign="middle" class="v4_gridCoolButton">6</td>
</tr>
</table>
<div class="v4_treeDropDown widthFull" style="height:1px;overflow-y:auto;" optionOverClass="v4_treeOptionOver">
<div class="v4_treeOption" index="0" value="6">Actividad Funcional</div>
<div class="v4_treeOption" index="1" value="13">Clasificación</div>
<div class="v4_treeOption" index="2" value="7">Elems. Involucrados</div>
<div class="v4_treeOption" index="3" value="10" selected>Estado</div>
<div class="v4_treeOption" index="4" value="4">Fecha</div>
<div class="v4_treeOption" index="5" value="9">Graduación Riesgo</div>
<div class="v4_treeOption" index="6" value="3">Incidentes actuales</div>
<div class="v4_treeOption" index="7" value="8">Lugar</div>
<div class="v4_treeOption" index="8" value="1">Mis Búsquedas</div>
<div class="v4_treeOption" index="9" value="5">Tipo Incidente</div>
<div class="v4_treeOption" index="10" value="2">Unidad de Negocio</div>
</div>
</span>
</td>
</tr>
</table>
<script type="text/javascript">initSelectBox(document.getElementById("groupIdDropDown"));</script>
</td>
</tr>
</table>I tried in vb.net with this code
WebBrowserFP.Document.Window.Frames("tree").Document.GetElementById("groupId").SetAttribute("selectedindex", "4")
I changed all parameters but I can't selected a different option
Regards and thanks in advance
- Moved by Franklin ChenMicrosoft employee Monday, November 25, 2013 2:56 AM Asp.net
Tuesday, November 12, 2013 11:08 PM
All replies
-
Wednesday, November 13, 2013 12:23 PM
-
Thanks but does not work for me :( .....HELPWednesday, November 13, 2013 11:46 PM
-
>>I changed all parameters but I can't selected a different option
I supposed that the element did not exit.
Wednesday, November 20, 2013 9:48 AM -
Hi,
I think the ASP.NET forum will be a better forum for you to ask this question, and you will get a good reply from there:
#ASP.NET forum:
http://forums.asp.net/Thank you for your understanding.
Best Regards,
FranklinWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Monday, November 25, 2013 2:58 AM