locked
[VB.NET] Select DropDown Menu Item? [WEBBROWSER] RRS feed

  • General discussion

  • 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%">&nbsp;</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&oacute;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&oacute;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&uacute;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


    Sunday, November 10, 2013 10:59 PM

All replies

  • 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,
    Franklin


    We 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.

    Tuesday, November 12, 2013 1:28 AM