Replies Back to Article

File ListBox

XML error
December 28, 2001 by Tony Pearce

I get an 'Could not find valid XML file that refers to the current server behavior and current server model' error.

I'm using ASP but not sure about 'FileSystemObject ' ?

RE: XML error
December 28, 2001 by Joel Martinez

Ahh, Thanks for the heads up... I've uploaded a new file, so you can download it at your leisure.  Could you please post again and tell me wether the new file works? thanks.

Turns out the .xml files where looking for "File ListBox.htm" and the actual file was "file listBox.htm"
Who knew Ultradev was case sensitive ;)

Still getting error
December 28, 2001 by Tony Pearce

Hi,

Exactly the same error, made sure used new version etc, started with new page, I'm using the config switcher, will this make a difference?

Has anyone else got ot to work? if so I'll bury my head....

ok, this should work now
December 28, 2001 by Joel Martinez

ok, apparently what were dealing with here, is an overwrite issue... I guess Ultradev was trying to be extra helpful by not overwriting the mxi and mxp files correctly.

I had to totally repackage everything before it would work.  I suggest uninstalling the extension from the extension manager before downloading the new version.

Sorry about the inconviniece, and thanks for you patience and help... please write back once more with the result of this download.

Hi,RE: ok, this should work now
December 28, 2001 by Tony Pearce

Hi,

Thanks for that, it now works fine, a very useful tool.

RE: Hi,RE: ok, this should work now
December 28, 2001 by Joel Martinez
Thanks!
Can we see a sample
January 5, 2002 by Mr. em
I am not sure what this extenssion dose, can somebody put a reference URL so I can see a sample of what it dose
RE: Can we see a sample
January 7, 2002 by Joel Martinez
You can see a demo of this at http://www.codecube.net/demos/filelistbox.asp
RE: RE: Can we see a sample
January 7, 2002 by Mr. em

HI and thanks for the quick reply, Now I see what it dose and how useful it can be

 

Thanks again

Eli

Selecting a file from the List Box
February 8, 2002 by jim Pedicord

Great extension, have been looking for something like this for quite awhile.  Is there a quick simple way to be able to click on one of the names listed from the directory list and have that file open?  (e.g. I have a directory of .pdf files and after displaying thems using the File ListBox I would simply like to be able to click on one and have it open for viewing).

Thanks

Jim

RE: Selecting a file from the List Box
February 8, 2002 by Joel Martinez

That is actually very simple, and the exact same reason that I wrote this extension... you can apply a "call javascript" behavior to the listbox for the onChange event.  The javascript will look something like this.

location.href = this.options(this.selectedIndex).text;

If the pdf files are in a different directory, just concatenate the name of the directory in front of the listbox value.  You  may want to double check the syntax of the script, but the concept stays the same...

multiple list boxes?
February 12, 2002 by cara williams

Great Extension!  But im having a bit trouble with getting two or more of them on the one page ... could anyone point me in the right direction?

Thanks,

Cara Williams (ICQ: 17914388)

excellent!
February 12, 2002 by sennan lagaluga
this is a great lil extension and very handy! but my question is this: would it be possible to have more than one listbox on the page? im lookin at making a gallery type listing where i can choose five or so images through the use of the listbox. thanks :)
RE: excellent!
April 2, 2002 by Joel Martinez

Sorry for the long wait in response,
The reason you get an error is because I tried to be a good programmer ;-) and dim all variables, so if you try to add another list you get the vbscript error.

the fix is simple, comment out or delete the line that starts with dim and your problems will cease to exist.

Hope that helps.

RE: RE: Selecting a file from the List Box
May 3, 2003 by Joao Felipe

Im getting a syntax error when i try to open the a file that is in a different directory.

the call java script works perfectly , but when i try to put the directory name in front of the option value i get a syntax error.

Can you help me Joel?