Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Browser control - truncated title
Message
From
01/08/2008 22:03:23
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
01/08/2008 15:39:44
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01335940
Message ID:
01336034
Views:
17
>I am using the webbrowser control in my application, and I have some information that I have stored in my hyperlink tag "a href=". When I click on the link, I am saving this information to the title of the browser and I display the information when I need it shortly afterwards.
>
>Problem:
>When I click on the link, everything works like I want it to except that my long "string" is cut off. I have tried tracing the sequence of events from the point at which I click the hyperlink and I find that in my browser control's statustextchange event, I still have my entire string. However, once I get to the titlechange event, it is becomes truncated and of course this is the version that gets displayed much later.
>
>Does anyone know of any way to track or capture the sequence of events that occur in the webbrowser control? I tried using the foxpro tools but I cannot find any entries in the call stack to indicate what happens from when I click the hyperlink. Also, is there a limit on the number of characters that can be displayed on the browser title?

Since you're already debugging, check the oBrowser.document object model - off the top of my head (most of my machine is busy at the moment, and it would take a long time to search) - there should be a .location or .url property (or something of the kind), that should preserve the whole URL of the page, with all the additional stuff. If intellisense doesn't kick in right away when you type obrowser.document... then assign that to a variable (all in command window while suspended or during a breakpoint in the debugger) and then try to get intellisense to show you the properties of that variable. One of them should be what you need.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform