TabControl or TabPanel

Add-in Express™ Support Service
That's what is more important than anything else

TabControl or TabPanel
 
Georges DEME




Posts: 18
Joined: 2017-03-07
Hi,

How to get the input element "Hold Parcel" inside of the TabControl or TabPanel "Hold" ?

<div>
<div class="k-tabstrip-wrapper">
<div class="k-widget k-tabstrip k-header k-floatwrap k-tabstrip-top" id="RootTab" data-role="tabstrip" tabindex="0" role="tablist">


  • <span class="k-loading k-complete"/>
    <a class="k-link" href="#RootTab-1">Hold</a>
    </li>

  • <span class="k-loading k-complete"/>
    <a class="k-link" href="#RootTab-2">Void</a>
    </li>

<div class="k-content k-state-active" id="RootTab-1" style="display: block;" role="tabpanel" aria-expanded="true">
<div class="container">
<div id="mainFrame" style="padding-top: 40px;">
<input name="Command" type="submit" value="Hold Parcel"/>
<input name="Command" type="submit" value="New"/>
<input name="Command" type="button" value="Traveler" onclick="OpenTraveler('LPKEN000000214228000')"/>
</div>
</div>
<div class="k-content" id="RootTab-2" role="tabpanel" aria-hidden="true" aria-expanded="false">
</div>
</div>
<script>
</div>



Thanks!

Georges
Posted 30 Mar, 2017 16:16:12 Top
Andrei Smolin


Add-in Express team


Posts: 18806
Joined: 2006-05-11
Hello Georges,

Every mshtml.HTML*Element class provides the getElementsByTagName()method. You use the mshtml object model to navigate to a control and call the getElementsByTagName() method on the control's class. Alternatively, you can call this method on HTMLDocument itself. The method returns a list of input elements; find an example at https://www.add-in-express.com/forum/read.php?FID=5&TID=4422. Then you scan the list and find the element required.


Andrei Smolin
Add-in Express Team Leader
Posted 31 Mar, 2017 03:19:28 Top