[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

Webbrowser - Scroll display to middle of text

Asked by GPrentice00 in Visual Basic Programming

Tags: webbrowser, scroll, vb6

I've been shown how to scroll the webbrowser display to the bottom
webbrowser..Document.parentWindow.scrollTo 0,50000

or some big number in that y axis ...

I've seen with a bunch of sites some other scrolling features based on tags, but I'm afraid that HTML is one area I've never gotten into so I don't really understand enough to even try playing with any one of the hundreds of properties or methods of some of these controls -- not that webbrowser has the intellisence to show me them, but I did discover that by adding a reference to Microsoft HTML Object library I can make a document object and set it to that, then play with the intellisense - but thats where I'm buried under too much stuff and very few good examples.

If I set the scrollto value above on my machine to about 180, it will jump all the pages on this site to the orange rivit bar.  I see in the innerhtml code, this bar is <TD class=topRivets align=middle width="1%">....

Clearly this is an element, but I cant figure from examples how to scroll to an element (or better yet, how to actually grab this out.)

Lets go a step beyond that:
<TD class=pageHeader>Title: This is where a clever person would think of something to title their queston </TD></TR></TBODY></TABLE>

Or to the first question
<TD class=questionHeader><NOBR><B>From:</B> .......


-------
How can I use this information (consider the questionHeader to be ~unique - the only lines of it are together to describe the person and date, pageHeader>Title:  is unique, and there is only one topRivits on the page but it can appear often in the html code...)

How do I relate these things to the Document object sub-objects, properties and methods?
I'm sure that there are collections that get generated of certain things automatically, and these may be in them, but I don't know what to look for or how to look for them.

Once having that information, what is the VB6 code to scroll the view to those objects.

200 pts for some assistance on what these things would be in a Document object, how to get at them - it would be nice to know that information, like at least pointing a blindfolded person into the right direction to walk, it cuts down on the uncertainty quite dramatically, and from there, I can have fun poking around myself -- but sometimes, you just need to know what questions you need to ask before you can get an answer: ESPECIALLY WITH GOOGLE!

+ 100 pts for a general description of how one will scroll the document to a particular area on the page

+ GIVAWAY points for the person with the ability to do that previous part:
   200 points for the exact code to jump to EACH of those 3 items describe on this question page.

In other words, drop a webbrowser object into a form, add a command button (or three of them)
link to this page, and let it load normally - no jumping scrolling anywhere.

I have a feeling we're talking about only 2 to 5 lines of code as these objects are supposed to be supercharged with functionality and data.

Press command1 jumps page to the rivits
Press command2 jumps page to the title
Press command3 jumps page to the question header.

IS THIS POSSIBLE?


(I would hope that with only one example, the others are easy, but I want to have enough info to see it in action CLEARLY -- especially if its a lot easier to cut and paste a simple code for the person who knows EXACTLY what to change it to.  Three points should provide a clear enough example to know what else there is to learn...



[+][-]07/27/03 01:36 AM, ID: 9013824Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:45 AM, ID: 9013836Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 01:49 AM, ID: 9013847Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 02:18 AM, ID: 9013882Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 04:49 AM, ID: 9014098Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 04:50 AM, ID: 9014102Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 07:00 AM, ID: 9014344Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 07:37 AM, ID: 9014511Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 10:43 AM, ID: 9015129Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 10:48 AM, ID: 9015140Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 10:54 AM, ID: 9015159Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:00 PM, ID: 9015512Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 01:03 PM, ID: 9015519Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 06:55 PM, ID: 9016606Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Visual Basic Programming
Tags: webbrowser, scroll, vb6
Sign Up Now!
Solution Provided By: DChrome
Participating Experts: 2
Solution Grade: A
 
[+][-]07/27/03 11:30 PM, ID: 9017588Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 11:32 PM, ID: 9017600Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 11:36 PM, ID: 9017618Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81