Showing posts with label dynamic programming internet explorer. Show all posts
Showing posts with label dynamic programming internet explorer. Show all posts

Friday, August 12, 2011

dynamic web interface programming visual studio

Hi,

i just started working on my web interface in visual studio
before, it was a vbscript (windows host script)

i had to  change the code a little to redefine all variables, some global, some local
the program is not object, so all is not local to every sub

first problem:
as i use internet as interface, in vb, you cannot access the web button and states as easily as in vbscript
here is the code i am working on at this moment:


        Dim str01 As String
        Dim str02 As String
        Dim str03 As String
        Dim HTMLEle As Object
        'For Each HTMLEle In OIE.document.frames("left").document.getElementsByTagName("input")
        For I = 0 To 1000000
            For Each HTMLEle In flef.getElementsByTagName("input")
                str01 = LCase(HTMLEle.getAttribute("name"))
                str02 = LCase(HTMLEle.getAttribute("type"))
                Dim controlName As String = HTMLEle.GetAttribute("buttonlef").ToString
                str03 = LCase(HTMLEle.GetAttribute("Value"))
                System.Console.Write(str01 & "   ")
                System.Console.Write(str02 & "   ")
                System.Console.Write("value: " & str03 & "   ")
                System.Console.Write(vbCrLf)
                For i2 = 0 To 50000000

                Next

            Next
        Next I

with this i can access the internet explorer objects but i need the state of them as the internet explorer buttons control my program

the interface is divided in 3 parts:
control (left frame)
input (middle frame, actually in top)
output (bottom frame)

as i use internet explorer as interface i don't need to have a report management, i simply added dynamically a java print button on the frame i wanna print

more to come!

it's been long since i programmed some vb in visual studio, i am eager to see what i can do with it and a dynamic interface