Replies Back to Article
File ListBox
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 ' ?

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 ;)
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, 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,
Thanks for that, it now works fine, a very useful tool.

HI and thanks for the quick reply, Now I see what it dose and how useful it can be
Thanks again
Eli
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

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...
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)

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.
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?