WebBrowser problem...
WebBrowser problem...
WebBrowser problem...
WebBrowser problem...
WebBrowser problem...
WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem...
WebBrowser problem... WebBrowser problem...
WebBrowser problem...
Go Back  Xtreme Visual Basic Talk > > > WebBrowser problem...


Reply
 
Thread Tools Display Modes
  #1  
Old 06-29-2006, 08:29 AM
CrasH_BandicooT CrasH_BandicooT is offline
Freshman
 
Join Date: Dec 2005
Posts: 40
Default WebBrowser problem...


Hi ...
Does anyone knows how to disable Javascript in the webbrowser component
and how to get info from tables inside a page !?

Here is the code of the tables where i want to take the strings

HTML Code:
<TABLE class=tabela cellSpacing=2 cellPadding=4 border=0>
<TBODY>
<TR class=impar>
<TD class=tx align=middle>Tipo de Tráfego</TD>
<TD align=middle><FONT class=tx>Realizado</FONT><BR><FONT class=medium>(GB)</FONT> </TD>
<TD align=middle><FONT class=tx>Limite</FONT><BR><FONT class=medium>(GB)</FONT> </TD>
<TD align=middle><FONT class=tx>Adicional</FONT><BR><FONT class=medium>(GB)</FONT> </TD></TR>
<TR class=par>
<TD class=medium align=middle>Tráfego Nacional</TD>
<TD class=medium align=middle>3.013</TD>
<TD class=medium align=middle>40</TD>
<TD class=medium align=middle>0.000</TD></TR>
<TR class=par>
<TD class=medium align=middle>Tráfego Internacional</TD>
<TD class=medium align=middle>9.922</TD>
<TD class=medium align=middle>4 + 6</TD>
<TD class=medium align=middle>0.000</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
There's any function to do it or i have to parse the html !?
i've seen a lot of threads in this forum and i just can't get the answer ...

ps :could anyone answer me what is the Inet component !!?
Reply With Quote
  #2  
Old 06-29-2006, 08:41 AM
MikeJ's Avatar
MikeJWebBrowser problem... MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,747
Default

I am beginning to think it's impossible to do it the "correct" way in VB6... In C/C++ you would implement the IDocHostUIHandler to allow for flags to be sent in the contructor - passing the DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE flag. Unfortunately, I don't see how you would even attempt to do that in VB, so we're up the creek without a paddle. You could parse the document, stripping out any <script> tags, but that's a kludgy workaround that Microsoft has forced upon us.

In reference to parsing tables - check out the Document Object Model (DOM) in MSDN.

Inet - Microsoft Internet Transfer Control:
http://msdn.microsoft.com/library/de...LROverview.asp
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #3  
Old 06-29-2006, 08:45 AM
CrasH_BandicooT CrasH_BandicooT is offline
Freshman
 
Join Date: Dec 2005
Posts: 40
Default

thankz alot MikeJ for the quick reply ....

i will follow your suggestions and then i willl say something if i could
make what i want !
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
WebBrowser problem...
WebBrowser problem...
WebBrowser problem... WebBrowser problem...
WebBrowser problem...
WebBrowser problem...
WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem... WebBrowser problem...
WebBrowser problem...
WebBrowser problem...
 
WebBrowser problem...
WebBrowser problem...
 
-->