View Single Post
  #13 (permalink)  
Old 03-02-2008, 08:58 PM
berndgoedecke berndgoedecke is offline
Knows the basics
 
Join Date: Dec 2007
Posts: 69
Awards Showcase
Beta Tester 
Total Awards: 1
Default Read out table values or properties by using href.

Hello agraham,
I create a table in this way:
For i = 0 To SelSpAnz-2
HtmStr = HtmStr & "<tr>" & crlf
HtmStr = HtmStr & "<td " & Chr(34) & "width=33%" & Chr(34) & " style= " & Chr(34) & "white-space:normal" & "; " & "background-color:#E0E0E0" & Chr(34) & ">" & "<a href='" & SelSpNam(i) & crlf & reader.GetValue(i)& "'>" & SelSpNam(i) & "</a></td>" & crlf
HtmStr = HtmStr & "<td " & Chr(34) & "width=67%" & Chr(34) & " style= " & Chr(34) & "white-space:normal" & "; " & "background-color:#FFFFFF" & Chr(34) & ">" & reader.GetValue(i) & "</td>" & crlf
HtmStr = HtmStr & "</tr>" & crlf
Next

The href-statement "<a href='" & SelSpNam(i) & crlf & reader.GetValue(i)& "'>"
is used by the onhotspot event in this way:

Sub hc_OnHotSPot
DTemp = hc.EncodeUTF8(hc.Url)
TempArr() = StrSplit(DTemp,crlf)
Msgbox("Ausgewählt: " & crlf & "ColumnName: " & TempArr(0) & crlf & "Data: " & TempArr(1))
End Sub

So I can locate the datas in the table or the position or whatever. Dzhtmlview is doing it verry nice but your HTMLBrowser supports some more tags to formate the table, so it would be great to use it in the same way.
I hope this codelines will help you to undestand what my problem is. It would be very helpfull to combinate the very good HTML-compatibility with the onhotspot event or somthing like that.

Best regards
berndgoedecke
Reply With Quote