Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Viewsource in _webview.vcx
Message
 
 
À
13/04/2003 02:47:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00776999
Message ID:
00777041
Vues:
13
>Now another problem.
>Thisform.oWeb.Document.documentElement.outerHTML is different from what I get when I do a rightmouseclick and View Source. The ...documentElement.outerHTML only has the frameset, but the View Source menu doesn't have anything about frames, so I'm guessing that ....outerHTML is not getting what's in the frame, and View Source is not getting the frame container.
>
>Can you point me to some documetation on the properties of oWeb.Document? Or just how can VFP 7.0 get at what's in the frame?

Hi Bill,

You can find WebBrowser Control Reference at http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/browser_control_node_entry.asp.
The WebBrowser Control document object has Frames collection. You can use it to access frames.
oDoc = Thisform.oWeb.Document
? oDoc.Frames.length    && Returns # of frames in collection
oFrame = oDoc.Frame(0)    && collection is 0-based
lcFrameHtml = oFrame.Document.documentElement.outerHTML 
You can iterate through frame collection to get html for all of them or pick one you need.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform