Web Browser Control (1 Viewer)

torquay

Registered User.
Local time
Today, 09:30
Joined
Dec 27, 2005
Messages
85
I am using Access 2010 and have a question about the web browser control.
I have inserted the control on a form and it navigates to a site and searches for the information I require.
The issue is that the response i need is always in the same place about 1/2 way down the page.
Is it possible to always show the same position on a websites page or is it possible to shrink the whole page down to the size of the control.
I have seached many places but cannot seem to find the answer.
Thanks in advance
 
That really is controlled by the web page design not the browser control.

What is the URL you are display?
 
if i may jump in here, one thing I thought of right away was if you use the bookmark to jump, at least to the right point. if you look at the source of that page, there's a main bookmark section via a list. here's the code:
Code:
<div id="outerwrap" class="homepage" > 
<!-- accessibility links --> 
<div id="skiplinks"><ul> 
	<li><a href="#search">Jump to Argos website search</a></li> 
	<li><a href="#firstnavlink">Jump to main categories</a></li> 
	<li><a href="#content">Jump to main content</a></li> 
	<li><a href="#sitemaplink">Jump to footer</a></li>	
	<li><a href="http://www.argos.co.uk/static/StaticDisplay/includeName/sitemap.htm">Jump to site map</a></li></ul></div>
so if you append the bookmark syntax to the end of the url it'll go to that part of the page.

I do not know how to shrink the view via %age though. I assume there is a property on the document to do it, but I don't know it.

HTH
 
@the_net_2.0: Thanks for jumping in. I was thinking the same thing.

@torquay:
It would help to know more about how the searching is done.
How do you get to the actual URL you want to display?
What is a URL of an actual page that has the data you want to see?
 
Thanks for the replies.
The url I have embedded in the form is
="http://www.argos.co.uk/webapp/wcs/stores/servlet/Search?storeId=10001&catalogId=1500002701&langId=-1&searchTerms=" & [Argos Number]

I have another table with all of the numbers I need to check i.e.

http://www.argos.co.uk/webapp/wcs/s...ogId=1500002701&langId=-1&searchTerms=6419248

Searching on the product number 6419248

Easy so far. The information I need is the product information which is 1/2 way down the page. Ideally I would like to have the embedded browser show the whole page but only in 50% of the form. I dont always need all of the product info so i dont want to scrape the product info from the url as this has to be done by hand depending on how much info is required.

When I resize the browser control on the form the actual browser doesnt decrease in size, you just see less of it.
 
Try adding "#pdpFullProductInformation" to the end of the url.

Try this:

="http://www.argos.co.uk/webapp/wcs/stores/servlet/Search?storeId=10001&catalogId=1500002701&langId=-1&searchTerms=" & [Argos Number] & "#pdpFullProductInformation"

Your Example Page would look like this:
Clck Here
 
That seems to work fine but...the page loads, then jumps down to the product info and then straight back to the top!
 
Do this link below work is you click on it:

Clck Here

The above link works fine in Fixrefox 3.6.13 and IE9 RC.

If it works fine in a your standard browser and not in the Access 2010 browser control then I would say that the web page is doing something not support in Access 2010 browser control.

If you really have to have it work this I would use .FollowHyperlink to open a full web browser.
 
Last edited:
Thanks very much, I will try and figure out whats causing that and let you know.
 
Oh yes the link is fine out of access but as I said when in access 2010 it goes down to the product info and then jumps right back to the top.
 
Thanks. I just wanted to make sure that I was understanding correctly.
 
is there any real reason to show the WEB page inside access ?
 
Yes the reason for showing inside access is that we have 100's to check and to keep going outside access is too time consuming. When the page loads with the new product code it is instantly checked in the browser inside access and the results are immediatly visable.
 
Yes the reason for showing inside access is that we have 100's to check and to keep going outside access is too time consuming. When the page loads with the new product code it is instantly checked in the browser inside access and the results are immediatly visable.

I don't think you understood the smig's questions. The question was not why show the web page. what simg and I would like to know is It was why do you have to show the web page on a Access form and not open a web browser?

The way that the page scrolls around is probably cause by them not using standard HTML. I did not look at the HTML. I have not seen that behavior before when moving to a bookmark. Unless you can get argos.co.uk to change their site or Microsoft to update their web browser control you probably will not be able to use the Access 2010 native control.

As I pointed put in post #9 above that you could to use the Applicaiton.Followhyperlink method.

Example:
Applicaiton.Followhyperlink "http://www.argos.co.uk/webapp/wcs/stores/servlet/Search?storeId=10001&catalogId=1500002701&langId=-1&searchTerms=" & [Argos Number] & "#pdpFullProductInformation"


It you absolutely must have the Web Page show on a form then try the IE ActiveX control.
 
what other Web browser control is there?
There is a IE ActriveX control. It is usually on most machines.

If you go to More Controls or ActiveX Controls in the newer versions. Select then "Microsoft Web Browser". This is how I do it in Access 2007 and prior versions. Still work fine with 2010

I have an example that duplicates most features of a Internet Explorer using an Access 97 form. I think I will update it to use the new Native browser control in 2010 to see if it handle web pages the same as IE.
 

Users who are viewing this thread

Back
Top Bottom