cs_abys
Messages postés77Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention29 juillet 2010
-
23 juil. 2003 à 10:49
cs_abys
Messages postés77Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention29 juillet 2010
-
16 sept. 2003 à 15:24
salut
une question qui a surement une reponse
g une appli dans laquel g mis un webbrowser
celui ci charge une page web contenant un formulaire.
(webbrowser.navigate...)
la page chargee je souhaite rajouter dynamiquement un champ de formulaire html au formulaire charger.
cs_abys
Messages postés77Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention29 juillet 2010 16 sept. 2003 à 15:24
Private Function AddChamp()
Dim doc As Object
Dim htBtn As HTMLInputElement
Dim htBod As HTMLFormElement
Set htDoc = WebBrowser1.Document
Set htBod = htDoc.All.tags("form")(0)
' Create a button and add to the document
Set htBtn = htDoc.createElement("")
htBtn.Value = "LA_VALEUR_DU_CHAMP'_VALUE
htBtn.Name = "LE_NOM_DU_CHAMP_NAME"
' Add to the beginning of the body element
htBod.insertAdjacentElement "beforeEnd", htBtn 'cf msdn