Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Extreme Newbie has question...

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Extreme Newbie has question...
  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 >>
 Extreme Newbie has question... - 3/19/2008 6:46:26 AM   
  patgenn123

 

Posts: 37
Score: 0
Joined: 1/14/2008
Status: offline
I know how to populate a list box dynamically and I would like to do this with files or folders.  However,  is there a way of showing this information with the folder icon on the left and, if it's a listbox for files, show the file icon on the left side inside the listbox before the name of the file?

I searched the forum and couldn't find anything.  I might even be asking the wrong question and that vbscript does not do this.

I don't know what the answer is.

Any help would be appreciated.

Thanks!

Pat 
 
 
Post #: 1
 
 RE: Extreme Newbie has question... - 3/19/2008 6:51:30 AM   
  TNO


Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Not unless you use you're own images and add them. The only built in way to do this with vbscript/COM is by using an .htt file, and this hasn't been used much since windows 2000.

On a good note, IE8 will support data URI's so you wont have to have external files, and can include the pictures right into the code.

_____________________________

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

(in reply to patgenn123)
 
 
Post #: 2
 
 RE: Extreme Newbie has question... - 3/19/2008 6:57:13 AM   
  patgenn123

 

Posts: 37
Score: 0
Joined: 1/14/2008
Status: offline
Is there anywhere on this site or anywhere else I can go to and point me in the right direction? Can't find it on this site.

I just need a sample code.  I have not a clue how to do this.  Again,  I know how to populate the listbox dynamically with file or folder names.  It would be nice to have the icon shown visually too!

Pat

(in reply to patgenn123)
 
 
Post #: 3
 
 RE: Extreme Newbie has question... - 3/19/2008 7:05:24 AM   
  TNO


Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
It may sound like an obvious question, but just in case, what does the list box look like? Like this?

<select multiple="multiple" size="3">
<option value="Foo">Bar</option>
</select>

_____________________________

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

(in reply to patgenn123)
 
 
Post #: 4
 
 RE: Extreme Newbie has question... - 3/19/2008 7:29:51 AM   
  patgenn123

 

Posts: 37
Score: 0
Joined: 1/14/2008
Status: offline
Actually,  the dynamic listbox gets its information from a text file.

Here are the two links I am going to use

http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul06/hey0711.mspx
http://www.microsoft.com/technet/scriptcenter/topics/htas/notitlebar.mspx

I guess it couldn't happen from a text file.

I hope I let everyone know I am so inexperienced with this,  I don't even know if I should post this question. 

Pat

(in reply to TNO)
 
 
Post #: 5
 
 RE: Extreme Newbie has question... - 3/19/2008 7:40:09 AM   
  TNO


Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
Scripting guy aint too smart in regards to DOM manipulation. If you have a large list of files, plan to be waiting a long time for it to load.

Go ahead and build something that does basically what you are wanting and post it, I and others could probably throw in some pointers and speed it up a bit. Worry about the pictures after you get a list working (functionality before aesthetics).

_____________________________

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

(in reply to patgenn123)
 
 
Post #: 6
 
 RE: Extreme Newbie has question... - 3/19/2008 8:01:10 AM   
  patgenn123

 

Posts: 37
Score: 0
Joined: 1/14/2008
Status: offline
OK,  I will give it my best shot.

Kindly,

Pat

(in reply to TNO)
 
 
Post #: 7
 
 
 
  

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 >> Extreme Newbie has question... 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