![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Additional Libraries Users contributed libraries. This sub-forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello agraham,
is it possible to get the url from the href -"tag" before it is excecuted by the browser? At the dzHTMLViewLib is the onhotspot event to do this. It's a nice event, even if you use basic commands instead of url, for href setting. Should it be that ControlRef returns this data ? Best regards berndgoedecke |
|
|||
|
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 |
|
||||
|
Quote:
I have replaced the original download with a new version 1.1 with amended help file and amended demo apps that hopefully do what you want. The following new things have been added. I didn't add them originally as I didn't realise they might be useful. DocumentText - a write-only property to set the html text of the browser. There is no way to access the text of the browser when either set by this property or downloaded. CancelNavigate - a write-only property that cancels navigation if set true during a Navigating event. This property does not work on a device running WM2003. NavigatingURL - a read-only property that when accessed within or after a Navigating event returns the URL to which the page is navigating. This property returns "Unavailable on WM2003" on a device running WM2003. Navigating : an event that occurs when the control is starting to navigate to a new web page. Navigated : an event that occurs when navigation to the new page is complete and and the browser is about to load and display the page. |
|
|||
|
Agraham,
Thanks for your effort with this library, it works almost perfectly with a little app that I have; I had originally used dzt's similar library but a like some of the other functionality of yours. The one question I do have relates to the way it acts when viewing web pages that are written for pc's(vs. mobile sites). It looks to me like it automatically formats the page for "one column", like PIE does when you set it. Is there any possible way to view it similar to the "desktop" view on PIE? I tried using a panel with a scrollbar but it still formats to basically fit the screen. Thanks for any help you can offer. |
|
|||
|
I have this control working perfectly now for my app.
It runs great on my Windows Mobile v5.0 (iPAQ rw6815) When I try to run my app on my daughters older PDA (Windows Pocket PC v4.20 (I think this is Windows Mobile WM2003?) - iPAQ 3970) the app still works great but when clicking on hyperlinks, nothing happens. Its not such a real prob as the hyperlinks are optional for playing the game but just wondered if there is another option in the DLL or a different (/older) webbrowser.DLL for older Pocket PCs that I should be using? Any answers greatly received. PS, I am going to distribute this app freely. Do I need to credit anyone for use of this DLL in my docs? I've no probs with this, just need to know what to put ... In the CHM it says (c) "Andrew Graham - 2008" - is this you agraham ? ![]() Last edited by badkarma : 03-30-2008 at 10:10 PM. |
|
||||
|
Quote:
Quote:
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| When compiling for Device, Desktop code is used | Woinowski | Bug Reports | 6 | 07-03-2008 09:30 PM |
| Editable Table - Device & Desktop | Erel | Code Samples & Tips | 8 | 06-27-2008 01:05 PM |
| Different behaviour DeskTop and Device | HARRY | Questions & Help Needed | 2 | 02-22-2008 12:36 PM |
| Using rapi from desktop to copy file from device to desktop | sunnyboyj | Questions & Help Needed | 9 | 02-08-2008 11:40 AM |
| Different behavior in desktop vs. device on AddEvent | willisgt | Bug Reports | 4 | 01-13-2008 12:29 PM |