Results 1 to 6 of 6

Thread: from txtBox.text to web browser field.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    196

    from txtBox.text to web browser field.

    I have 4 text boxes and a button that opens up a web browser going to a particular site. This site has all the fields listed in the code below. The field Labeled ("Descript") is the one i am refering to. My question is how do I code so that the cmdButton when clicked opens the web browser only if the text boxes have data in them. It could only be one text box in which Case I only need the browser to open one time, or it could be 4 text boxes that have data in them in which case i needs the web browser to open 4 times. so for instance if only the txtoutbound Box has data in it then i need it to open one of the web browser and in the feild labeled "SubmitSegment.Document.All("Descript").Value = " i need it to put the information from txtOutbound. However if txtOutbound and txtMeeting have data in them then I need the webbrowser to open twice and in the field of the webbrowser that opened because of txtOutbound i need the data from txtOutbound to be placed in the "SubmitSegment.Document.All("Descript").Value = " field and then the second brower would open for the txtMeeting, inputing the data from txtMeeting in the "SubmitSegment.Document.All("Descript").Value =" field. This could happen a total of 4 times. Can I create just one webbrowesr? and how would I code it?


    Code:
    Private Sub SubmitSegment_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    
     If InStr(URL, WebURL) Then
       SubmitSegment.Document.All("segment_type").selectedIndex = 0
       SubmitSegment.Document.All("Descript").Value = txtOutbound
       SubmitSegment.Document.All("Approval").Value = "john Doe"
       SubmitSegment.Document.All("Fname").Value = "John"
       SubmitSegment.Document.All("Lname").Value = "Doe"
       SubmitSegment.Document.All("Phone").Value = "1234567"
       SubmitSegment.Document.All("Department").selectedIndex = 2
       SubmitSegment.Document.All("super").selectedIndex = 0
    
     
     End If
    End Sub

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: from txtBox.text to web browser field.

    Please do not bump threads. For some of the reasons, see this

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    196

    Re: from txtBox.text to web browser field.

    I am sorry. Although this post is a little different, and the previous is marked as resolved since i thought it was. I wont do it again.

  4. #4
    PowerPoster Ellis Dee's Avatar
    Join Date
    Mar 2007
    Location
    New England
    Posts
    3,530

    Re: from txtBox.text to web browser field.

    Quote Originally Posted by Hack
    Please do not bump threads. For some of the reasons, see this
    I asked him to put this question in a separate thread in keeping with the standard practice of the boards.

    Also, since the only post he made was the OP, I don't see how it could be construed as a bump.

    EDIT: Unles he bumped it and you deleted the post, in which case, never mind.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    196

    Re: from txtBox.text to web browser field.

    anyone have an idea?

  6. #6
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: from txtBox.text to web browser field.

    may be u can go like that.......


    vb Code:
    1. public sub ReviewNSubmit()
    2. if txtoutbound > "" and txtmessage = "" then
    3. then 'navigate to site
    4.      do until pageloaded = true and SubmitSegment.busy = false
    5.      doevents
    6.      loop
    7. 'fill the page & submit
    8. elseif
    9. if txtoutbound > "" and txtmessage > "" then
    10. then 'navigate to site
    11.      do until pageloaded = true and SubmitSegment.busy = false
    12.      doevents
    13.      loop
    14. 'fill the page & submit 1st data
    15.      pageloaded1 = false
    16.      do until pageloaded1 = true and SubmitSegment.busy = false
    17.      doevents
    18.      loop
    19. pageloaded2 = false
    20. ' open next url to fill form
    21.      do until pageloaded2 = true and SubmitSegment.busy = false
    22.      doevents
    23.      loop    
    24. ' fill page n submit the second data.....
    25. end if
    26. end if
    27. end sub

    in general decleration's declare

    vb Code:
    1. dim pageloaded as boolean
    2. dim pageloaded1 as boolean
    3. dim pageloaded2 as boolean

    & in browser download complete event set all those variable as true

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width