Tezcatlipoca
Registered User.
- Local time
- Today, 00:23
- Joined
- Mar 13, 2003
- Messages
- 246
Related to this thread.
Apologies if this seems like a second post, but the above thread had two issues, the first of which - to which the thread title relates - is solved.
I've decided to start a second thread for the latter problem with a more relevant thread title purely so, if a solution is found, this thread will show up in future searches and help people with a similar problem.
Hokay, as you can see from the linked thread, I have a form. The form has a WebBrowser object on it. I also have an unbound textbox and a button.
The user can enter a number into that textbox, click the button, then the WebBrowser object automatically goes to the static webpage, appending the textbox contents to the URL.
In this case, the static webpage is an ASP page that is used to perform an online search from a database separate to my own, and the number the user puts into the textbox directly relates to the member number of the person they are seeking in the other database. This all works great.
Now, when that person has been found, the WebBrowser object shows an XML webpage with a number of fields on it (Number, Name, Postcode, and so on). This works, but, frankly, looks very messy.
In addition, I need to be able to use parts of that returned data elsewhere in my project...
...which is where the thread coms in. I'm hunting for a way, any way, to strip the data off of that search results webpage contained in the WebBrowser object, and update other textfields with it.
So, for example, I would have an unbound textbox on the form called txtPostCode. When the user does a search on, say, member 12345 and the postcode is listed in the XML as <POSTCODE>W1 4JH</POSTCODE>, then txtPostCode would automatically get updated with this data. the same would go for Name, and so on.
Does anybody know how to get VB to grab those details from the WebBrowser object?
Apologies if this seems like a second post, but the above thread had two issues, the first of which - to which the thread title relates - is solved.
I've decided to start a second thread for the latter problem with a more relevant thread title purely so, if a solution is found, this thread will show up in future searches and help people with a similar problem.
Hokay, as you can see from the linked thread, I have a form. The form has a WebBrowser object on it. I also have an unbound textbox and a button.
The user can enter a number into that textbox, click the button, then the WebBrowser object automatically goes to the static webpage, appending the textbox contents to the URL.
In this case, the static webpage is an ASP page that is used to perform an online search from a database separate to my own, and the number the user puts into the textbox directly relates to the member number of the person they are seeking in the other database. This all works great.
Now, when that person has been found, the WebBrowser object shows an XML webpage with a number of fields on it (Number, Name, Postcode, and so on). This works, but, frankly, looks very messy.
In addition, I need to be able to use parts of that returned data elsewhere in my project...
...which is where the thread coms in. I'm hunting for a way, any way, to strip the data off of that search results webpage contained in the WebBrowser object, and update other textfields with it.
So, for example, I would have an unbound textbox on the form called txtPostCode. When the user does a search on, say, member 12345 and the postcode is listed in the XML as <POSTCODE>W1 4JH</POSTCODE>, then txtPostCode would automatically get updated with this data. the same would go for Name, and so on.
Does anybody know how to get VB to grab those details from the WebBrowser object?