vbscript >> VBScript and IE page scrolling

by howardbryden » Wed, 07 Sep 2005 13:33:00 GMT

I'm have a VBS module that sends text to an IE page as a simple
progress tracker.

I'd like the browser to behave in the same way as a console text
screen, i.e. the current cursor migrates down to the bottom edge of the
window with subsequent outputs causing an implicit scroll down.
However in IE there is no such implicit scrolling and the user has to
use the scroll bar to eplicitly migrate to the bottom of the page for
the latest output.

I though the "doScroll" method would do the trick but I haven't had any
luck with it so far.

Has anyone cracked this one?

Thanks


----------------------------------------------------------------------------------------------------------
Rocket J. Squirrel: "... we're going to have to think!"
Bullwinkle J. Moose: "There must be an easier way than that."


vbscript >> VBScript and IE page scrolling

by Miyahn » Wed, 07 Sep 2005 17:52:53 GMT



Explicitly scroll down after output.

With ieApp.document.body
.insertAdjacentText "beforeEnd", strMessage & vbCrLf
With .createtextrange
' .collapse False
.scrollIntoView False
End With
End With

--
Miyahn (Masataka Miyashita) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2005 - Dec 2005)
XXXX@XXXXX.COM

vbscript >> VBScript and IE page scrolling

by howardbryden » Thu, 08 Sep 2005 09:22:17 GMT

Bingo, that did the trick.

Thanks.

Similar Threads

1. Help with scroll bars on frames page using vbscript

I need some help.  I can't seem to rid myself from the horizontal scroll bar at the bottom of my main frame page.  On that page there are 3 dynamically created tables and when those tables are populated with less data that the total page there are no scroll bars.  However,  when the tables get big longer than the bottom allows, the vertical scroll bar shows up w/ the horizontal.  Since the vertical scroll bar takes some of the display space, the total visible space is now less than the working space of the page causing the horizontal scroll bar to appear.  

I have tried everything.  The only way to stop the horiz - scroll bar to appear is to use scrolling = "no" however that also gets rid of my horizontal scroll bar which i need when the tables get big enough.  If anyone knows how to work around this please respond.  The main body page is a VBscript active server page which connects to a database and displays in tablature form, 3 querys.  If you need me to include any of my code just let me know.  



2. VBScript to tell when IE page is loaded

3. IE vbscript Page setup

Hi,
I'm here cause just cannot find a solution in classical net searching for
documentation

My BIG problem is:

I have a document HTML, nice formatted into a table with standard width and
height
I want print this page but having some page settings default for my page,
every time when I want print this page must set manually left and top margin
of page in order to get page correctly printed.
I know I can just set width table to 550px or 100%, but this page must have
smaller margins than default ...
Is there a way to set up page margins from vbscript or javascript, or any
ideea for documentation that can help me ?

Thanx very very very much for any help in my business project


4. Scrolling Issue - Every Internet page scrolls unevenly! - Internet Explorer(IE)

5. VBSCRIPT ERROR IE PREVIEW or F12 Dynamic Web Pages

Web Server: ISS 5.1
 Windows XP SP1
 Server Techno: ASP VBscript 
 Database : Access (connection ok)
 Got the Macromedia Dreamweaver MX 2004 Version. M working on the Getting 
Started Tutorial (Trio Motors) which details how to insert record on a web page 
(in comments-add.asp file). When i want a preview with F12 or Live Data I ve 
got the following error message :
 Microsoft VBScript compilation error '800a0401' 

 Expected end of Statement

 /iisHelp/common/500-100.asp, line 11 

 Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP Dim 
strMethod, lngPos, datNow, strQueryString, strURL
 --------------------------------------------------------------------------^
 Microsoft VBScript compilation error '800a0401' 

 Expected end of statement

 /MySampleApp/comments-add.asp, line 6 

 var MM_editAction = Request.ServerVariables("SCRIPT_NAME");
 ----------------------------------------------------------^




6. Automatically scrolling IE window to show last lines added

7. Scrolling Within A Page In An EE-8 Web Page

Hello,
When I try to scroll down in a window within a web page, the list
keeps popping back to the first list item in the scroll list so I can
not look at things that are on the lover part of the list.
Cheers for any advice given, Guy.

8. Listbox disabled - cant scroll in IE - can scroll in Firefox - Asp.Net