WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with MSIE
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Insert Data into IE Web Form INPUT Controls


Here's how to place data into the INPUT controls on the page.
browser = ObjectOpen("InternetExplorer.Application")
browser.visible = @true
url = "http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web"
browser.navigate(url)

while browser.readystate <> 4
	timedelay(0.5)
endwhile

browserdoc = browser.Document
all = browserdoc.all

;List all input names

:InsertData
myinput = all.item("keywords")       ; <--- you can refer to control by subscript or name...
myinput.value = "W14390"
ObjectClose(myinput)

myinput = all.item("daze")       ; <--- you can refer to control by subscript or name...
myinput.value = "all"
ObjectClose(myinput)

myinput = all.item("anyall")       ; <--- you can refer to control by subscript or name...
myinput.value = "all"
ObjectClose(myinput)


Pause("Debugging","Check input fields.")

ObjectClose(all)
ObjectClose(browserdoc)
ObjectClose(browser)

Article ID:   W16123
File Created: 2014:07:18:09:51:38
Last Updated: 2014:07:18:09:51:38