Focal Point
[CLOSED] Opening HTML Pages at the top of the page

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4357063326

August 20, 2012, 12:29 PM
Ron Hansard
[CLOSED] Opening HTML Pages at the top of the page
I have 14 frames on an HTML composer page. Each frame launches a graphic. My problem is that the HTML composer page opens in the middle of the page, not at the top. How do I get the page to open at the top?

This message has been edited. Last edited by: Kerry,


Release 8.2.1
Microsoft Server 2012R2
August 21, 2012, 03:34 AM
Dave
Hi Ron,

Windows ( or internet-explorer, choose your culprit ) opens new windows at the location ( and size ) where the user last left it.

You see this behaviour on any website that spawns new browser-windows.

The user can 'store' this size and location by hold shift while closing the window ( click on the [x] )

There is no build in solution in WebFocus to customize it.

I know it possible to set the width and height ( and even location ) in Jscript.
Technically it should be possible to hack WF's .js routines and add you custom size and location.

But I don't know which .js to 'attack'.

In sort.
Not available in WF, but it should be possible.

Greets,Dave

This message has been edited. Last edited by: Dave,


_____________________
WF: 8.0.0.9 > going 8.2.0.5
August 21, 2012, 07:34 AM
David Glick
The HTML Composer page will scroll to the object whose tab index is first in the tab order. So you need to make sure your tab index values for the objects at the top of the page are first in the tab order.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com
August 23, 2012, 11:16 AM
Ron Hansard
Greetings David,

Thanks for taking the time to help me out, but I tried both of these suggestions early on. Unfortunately, this HTML page continues to open in the middle. Any other suggestions?

Ron


Release 8.2.1
Microsoft Server 2012R2
August 24, 2012, 03:10 AM
Dave
Ron,

I guess I misunderstood the question.

The browser will scroll to anytihng with the lowest tab-index ( like David said ).

But only if this tab-index will result in a cursor ( like in an input box ).

This code should work:
<script language="jscript">
scroll(0,0);
</script>


or

<body onload="scroll(0,0);">


****unchecked code, might need some tweaking.

G'luck, Dave


_____________________
WF: 8.0.0.9 > going 8.2.0.5
August 24, 2012, 07:34 AM
David Glick
Perhaps you are getting a cached version? Clear the browser cache.


David Glick
Director WebFOCUS App Studio
and WebFOCUS Developer Studio
WebFOCUS Division
Information Builders, Inc.
Direct (917) 339-5560
Voice Mail (212) 736-6250 x3560
Fax (212) 947-5168
Email david_glick@ibi.com