Click here to Skip to main content
15,885,949 members
Articles / Desktop Programming / WTL

Web Win32/WTL Hybrid

Rate me:
Please Sign up or sign in to vote.
4.83/5 (15 votes)
22 Dec 20054 min read 136.2K   2.1K   50  
How to implement a two-way communication path from IExplorer and WTL code
<html>
<body bgcolor='#306090'>
<font color='white' face='verdana' size='2'>
<input type="button" value="sample messagebox" onclick="testmsgbox()"><br/>
<hr>
<input type="button" value="Set message words at status bar" onclick="setstatusbartext('A simple words...')"><br/>
<hr>
<input type="button" value="Hide tree view" onclick="hidetree()"><br/>
<input type="button" value="Show tree view" onclick="showtree()"><br/>
<hr>
Text: <input name='newitem' type='text' value='ChildText' size='12'> &nbsp; <input type="button" value="Add child to selected tree item" onclick="addchild()"><br/>
<hr>
<form name='testForm'>
<table cellpadding='0' cellspacing='0' style='color:white;font-face:verdana;font-color:white;'
<tr><td align='right'>First Name:</td><td><input name='firstName' value='Jesus' size='12'></td></tr>
<tr><td align='right'>Last Name:</td><td><input name='lastName' value='Salas' size='12'></td></tr>
<tr><td align='right'>Address: </td><td><input name='address' value='Spain!' size='12'></td></tr>
<tr><td align='right'>Check this checkbox:</td><td>  <input name='ILikeIt' type='checkbox' checked' size='12'></td></tr> 	
<tr><td align='right'>Country: </td><td>
<select name='country'>
   <option value='valueSpain'> Spain
   <option value='valueUSA'>   USA
   <option value='otherCountry'>otherCountry
</select>
</td></tr> 	
</table>
<input name="buttonSubmit" type='button' value='Submit Me!!'>
</form>



<hr>
<script language="VBScript">
sub testmsgbox()
    external.MyMessageBox "Hola","Adios"
end sub
sub hidetree()
    external.HideTree() 
end sub
sub showtree()
    external.ShowTree() 
end sub
sub setstatusbartext( text )
    external.statusbartext = text
end sub

sub addchild()
    external.AddChildToTree( window.document.all("newitem").value )
end sub

</script>
</font>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
CEO wave-vs.net
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions