Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Scrolling in HTA

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,41089
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Scrolling in HTA
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Scrolling in HTA - 12/16/2006 8:38:38 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Hey everyone, you guys seem to be experts on hta so I thought I would ask you.
I have an apllication which runs inside a HTA frame/program. In general I don't want scroll bars on the page so I set up the hta like so:

<HTA:APPLICATION
ID=oHTA
SYSMENU="yes"
SELECTION="no"
CONTEXTMENU="no" 
SCROLL="no"
APPLICATIONNAME="Field Ministry Organizer"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
Navigable="yes"
ICON="fmo/fmo_images/clouds2.ico"
BORDER="dialog"
/>

However on a couple of pages a lot of data is displayed and I need to be able to scroll. Is there a way I can temporarily put on scrollbars?

I tried something like this:
<script>
oHTA.scroll="yes";
</script>

but it says that 'oHTA' cannot be found. I assume this is because the setup for the hta is on the index page. I tried placing the setup for the HTA on the page I want the scrollbars on but it had no effect. I assume this is because once the frame is set up it no longer looks for a config section.

Is there a way I can change the frame settings either in VB or JS?
Any help much appreciated.

p.s. please don't recomend using an Iframe as this does not suit my purpose.

_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk
 
 
Post #: 1
 
 RE: Scrolling in HTA - 12/16/2006 9:28:44 AM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Instead of using SCROLL=no put this in your body tags:

style="overflow:scroll" OR style="overflow:hidden"

I think its self explanatory from there, you can change these values like so: document.body.style.overflow="blah"

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to swiftoid)
 
 
Post #: 2
 
 RE: Scrolling in HTA - 12/16/2006 11:41:46 AM   
  dm_4ever


Posts: 2721
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
On the same lines as TNO if you want to scroll bar to appear automatically if needed then just set the overflow setting to "auto"

<body style="overflow:auto">

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to swiftoid)
 
 
Post #: 3
 
 RE: Scrolling in HTA - 12/16/2006 8:58:38 PM   
  TNO


Posts: 1397
Score: 16
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
You're right that
<body style="overflow:auto"> may save you typing, but depending on the layout of the page, it may not work as desired. It depends on your personal preference.

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to dm_4ever)
 
 
Post #: 4
 
 RE: Scrolling in HTA - 12/17/2006 2:24:38 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Thanks guys, your amazing. You just saved me hours of work reformatting my program. The suggestion work great but is there a way to stop the bottom scroll bar (horizontal) appearing when there is nowhere to scroll to? This is not essential but would be helpful. Thanks again,

_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk

(in reply to TNO)
 
 
Post #: 5
 
 RE: Scrolling in HTA - 12/17/2006 2:41:56 AM   
  swiftoid


Posts: 31
Score: 0
Joined: 10/20/2006
Status: offline
Just discovered the solution to my own problem.
If you set it to auto as in:
 overflow:auto;
it doesn't automaticly display the bottom bar. YAY, thanks for your help guys.


_____________________________

Jamie Swift
<!---The Swiftanator---!>
www.swiftscripts.co.uk

(in reply to swiftoid)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Scrolling in HTA Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts