Results 1 to 6 of 6

Thread: this is a test...please disregard

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    108

    this is a test...please disregard

    Dim dhtmldoc As HTMLDocument
    Dim dhtmlbody As HTMLBody
    Dim DHTMLEC As HTMLElementCollection
    Dim DELEM As IHTMLElement
    Dim obj As Object


    ' Dim dhtmlelement As HTML

    Set dhtmldoc = WebPreview.Document
    Set dhtmlbody = WebPreview.Document.body


    Set dhtmlbody = WebPreview.Document.body

    ' dhtmlbody.outerHTML = "<h1>hi</h>"
    ' dhtmlbody.innerHTML = "<body><h1>there</h></body>"
    WebPreview.Navigate2 (ckRSlash(G_UserDir) + "comp.html")

    Call ClearWebPreview

    WebPreview.Document.body.insertAdjacentHTML "afterEnd", "<h1>there</h>"
    WebPreview.Document.body.insertAdjacentHTML "BeforeEnd", "<h1>tdddhere</h>"

    WebPreview.Document.body.insertAdjacentHTML "BeforeEnd", "<Table BORDER=2><TR><TD ID=MARK>hello</TD></TR></Table>"

    'Set DHTMLEC = WebPreview.Document.All("TD")
    'For Each OBJ In DHTMLEC
    ' Debug.Print
    'Next

    Dim hctableCellEC As IHTMLElementCollection
    'Dim hFontElement As IHTMLFontElement
    Dim hTableCell As HTMLTableCell
    Dim cellcounter As Integer

    cellcounter = 1
    Set hctableCellEC = WebPreview.Document.body.getElementsByTagName("TD")


    For Each hTableCell In hctableCellEC
    'Debug.Print "innertext" & hCell.innerText

    'hCell.Color
    If cellcounter = hctableCellEC.Length Then
    Call hTableCell.insertAdjacentHTML("BeforeEnd", "<TR><TD>holy moly</TD></TR>")
    Else
    cellcounter = cellcounter + 1
    End If
    Next
    cellcounter = 1
    Set hctableCellEC = WebPreview.Document.body.getElementsByTagName("TD")
    For Each hTableCell In hctableCellEC
    'Debug.Print "innertext" & hCell.innerText

    'hCell.Color
    If cellcounter = hctableCellEC.Length Then
    Call hTableCell.insertAdjacentHTML("BeforeEnd", "<TR><TD>holy moly</TD></TR>")
    Else
    cellcounter = cellcounter + 1
    End If
    Next

  2. #2

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    108

    Re: this is a test...please disregard

    test

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    108

    Re: this is a test...please disregard


  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: this is a test...please disregard

    Eugene,

    There is a test Forum for this purpose here: http://www.vbforums.com/forumdisplay.php?f=39

  5. #5
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    537

    Re: this is a test...please disregard

    What exactly do you test in the test forum?

  6. #6

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