Hi, in an application I would like to open an html page with the Webrowser control, but instead of showing the start of the document, to show the bottom of it (automatic scrolldown)
Does anyone now if this is possible with mobile IE?
thanx
-
-
Does PIE support scrollIntoView?
-
I am not sure. I have tried to do this using the window.scrollBy() function but mobile IE does not support it.
I think it will not support the scrollIntoView() function as well.
I am running on Windows Mobile 5.0 -
Check out the WebBrowser control documentation. I tried to find a member that allows you to do what you want and that is supported by the compact framework. But it seems as there is no such function for the control on the compact framework.
-
I have tried everything but nothing seems to work.
Maybe the DocumentText property of the Webrowser could help just to diplay the particular part of the text that I wish to display. -
Which version of Mobile ?
According to this, [WM6's IE has a scrollTo() method on the window HTML object] - using javascript of course.
For earlier versions, you might try changing the location HTML object via script, appending a hash and a bookmark name. [Here's the appropriate link for WM6], but it is the same for WM5, and probably older - I have the old doco installed locally, and I'm too lazy to find it online...
I also remember there was something related to (WAP) CSS access keys, something or rather.
EDIT: In the first link's blurb, notice how the baffoons blindly go and use the 'pound' word when clearly they are talking about the hash - the property is even called hash...
-
Hi RichardRudek,
I am using Windows Mobile 5.
I have already tried to do it with the hash thing(using the '#' in the url) you mentioned but I couldnt make it work.. -
kurt_godel wrote:Hi RichardRudek,
I am using Windows Mobile 5.
I have already tried to do it with the hash thing(using the '#' in the url) you mentioned but I couldnt make it work..
Works for me in the emulator:

See the scroll bar on the right ?.
Here's the HTML I used:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
</head>
<script type="text/javascript">function goThere() { location.hash = "Here"; }</script>
<body onload="goThere()">
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<h1>
This is a Test</h1>
<p>
<a id="Here"></a>Now this is where I wanna be...</p>
</body>
</html>EDIT: Added picture for Smart Phone 2003
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.