Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Assistance With Displaying Output In Text Area

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Assistance With Displaying Output In Text Area
  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 >>
 Assistance With Displaying Output In Text Area - 10/9/2008 9:37:36 PM   
  morpheus83uk

 

Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
Hello,

I have the following code:


      

At the current moment I can click a checkbox and click on the help button and then in the help box it will display the help. This works fine. However when two or more checkboxes are check it will only display the last checkbox to be checked in the help box.

What I would like to do is if multiple checkboxes are checked then it would build up the help based on the checkboxes. So it would display the help for the checked items. I am unsure as to how I can do this? Would it have to like look at option one check if its checked and then if so display the help and then check for option two etc on the button click? If this is the case could someone give me an idea as to how I could do this and then I will have a go.

Many Thanks

James

< Message edited by morpheus83uk -- 10/10/2008 1:18:59 AM >


_____________________________

VBScript Documentation:

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en
 
 
Post #: 1
 
 RE: Assistance With Displaying Output In Text Area - 10/10/2008 1:46:06 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
objTxtArea.innerText = objTxtArea.innerText & "blahblah

do this for each checkbox selected so that you build the content rather than overwrite it.

_____________________________

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 morpheus83uk)
 
 
Post #: 2
 
 RE: Assistance With Displaying Output In Text Area - 10/10/2008 9:56:15 AM   
  morpheus83uk

 

Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
Hello,

That seems to work however its not like updating as I thought it would... So for clicking 3 buttons and then clicking help it works fine

If I deselect a button and click another one and click help it leaves the previous behind...

Is there a way of stopping this?

Many Thanks

James


      

_____________________________

VBScript Documentation:

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en

(in reply to dm_4ever)
 
 
Post #: 3
 
 RE: Assistance With Displaying Output In Text Area - 10/10/2008 11:09:04 AM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
Every time the Help sub is called, clear the content first before you get to any of the If statements.

_____________________________

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 morpheus83uk)
 
 
Post #: 4
 
 RE: Assistance With Displaying Output In Text Area - 10/10/2008 7:51:13 PM   
  morpheus83uk

 

Posts: 373
Score: 0
Joined: 8/21/2006
Status: offline
Hi,

Thats great thanks for that :)

Its working perfectly.

Many Thanks

James

_____________________________

VBScript Documentation:

http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&displaylang=en

(in reply to dm_4ever)
 
 
Post #: 5
 
 
 
  

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 >> Assistance With Displaying Output In Text Area 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