Focal Point
[SOLVED] Setting Tabs in HTML Launch Page

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

July 02, 2009, 11:58 AM
<Wayne White>
[SOLVED] Setting Tabs in HTML Launch Page
I have set up an HTML launch page & have 13 parameter boxes to select values (or not). I have the Tabs set 1-13 & changed every other control on the page to Tab 0 (Text boxes, group boxes, etc. - I don't see where to turn Tabs off altogether on these - they don't require nor will they accept any input).

The Tab View shows me that my Tabs are numbered the way I want them. My page links to 3 different files to supply dynamic parameter lists. The Curser always comes up in the Last Box supplied by the files (which is Tab # 9). If I click in the Tab 1 Box, the Tabs follow the numbered path, but, if you Tab from where the Curser comes up, it goes through the rest of the page & then through about 20 Controls that I tried to turn off.

Can someone tell me what I need to do to get this page to open at Tab # 1?

Wayne

This message has been edited. Last edited by: Kerry,
July 02, 2009, 02:22 PM
susannah
tab 1 is usually the Run button
have you opened up the code and looked at the tabIndex attribute for each element?
have you tried just renumbering them and removing the tabIndex attributes altogether from the ones you don't want included in the tabbing event?




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 02, 2009, 03:40 PM
GamP
And keep in mind that if a control has tab key 1, it does not mean that it will be the active element when you start the page. That can be anything. And using the tab key on the page will follow the tabIndex set for the various elements, including the ones that have tabIndex set to 0.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 03, 2009, 04:32 AM
Tony A
If you do not wish the tab key to navigate to certain controls on your form then set the "tabindex" to "-1".

To set the initial control focus to the one you want, use JavaScript like this in the OnLoad function -

document.getElementById("input18").focus();

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
July 06, 2009, 09:46 AM
<Wayne White>
Thanks for the Help. Tony's suggestion worked for getting the curser where I wanted, accept that I had to set it using OnInitialUpdate instead of OnLoad.

The -1 tab setting also turned off those tabs.

There are still 3 tabs coming up at the end & I can't see anywhere to set them to -1. They don't have any viewable controls. The tip at the bottom of the HTML Page shows the first 2 are java scripts to show my 2 calendars & the 3rd goes to the URL.

I can live with this if there isn't an easy way to stop these 3 tabs.

Thanks again...Wayne