Solved

Webbrowser's text from a frame

Posted on 2004-04-01
2
752 Views
Last Modified: 2013-12-25
I have a webbrowser control in my app.
I load an html from my local machine that submits the form to another location (site).

after submission, i found 2 frames in my webbrowser as a response from the site.

I want to access the text of the first frame when the download is complete.

I tried to access it as we simply do in frameless html pages (in document complete event) but doesnt work.
eg.      webbrowser1.Document.body.innerHTML


the following method gives me the frame with an href=<site location> and not the source of the frame:
        webbrowser1.Document.All.tags("frame")(0).src


Can anyone tell the procedure of reading text of the frame from the webbrowser?

thanks
0
Comment
Question by:Neeraj Soni
  • 2
2 Comments
 
LVL 13

Expert Comment

by:crazyman
Comment Utility
?
 webbrowser1.Document.All.tags("frame")(0).document.body.innerHTML
0
 
LVL 13

Accepted Solution

by:
crazyman earned 90 total points
Comment Utility
or
 webbrowser1.Document.frames("FrameName").document.body.innerHTML
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now