Solved

Classic ASP View Images From Folder in Lightbox

Posted on 2013-05-23
3
837 Views
Last Modified: 2013-05-29
Classic ASP VBScript

Hello, all.


I have a main Folder ("Commonparts2").

I created a FSO script to list all the Subfolders inside the "Commonparts2" folder, and made them hyperlinks.

I created a nested FSO script to list the image files found within each Subfolder.

Those list fine.


Now... I'm trying to actually display those images in a Lightbox, grouped by the respective Subfolder name.

The Lightbox comes on the screen, but continues to load, like it's not finding the image...

Not sure what I'm doing wrong.

I have attached the code I have for now.


Thank you,
Shane
testfolders.txt
0
Comment
Question by:lshane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39194199
In this portion of your code, where are you displaying anything?

for each imagefile in imagefolder.files
  'Print the name of all files in the test folder
  'Response.write(imagefile.Name & "<br>")

imagepath=strpath&imagefile.Name
imagepath=replace(imagepath,"\","/")

' **** Something should be here response.write imagepath

next

Open in new window

0
 

Author Comment

by:lshane
ID: 39194771
Hi, padas.

Well, initially, I had this code (take from just above the "imagefile" loop):

  'Print the name of all subfolders in the test folder
  Response.write("<a href="&imagepath&" rel=lightbox["&x.Name&"]>"&x.Name&"</a><br>")


... but that lists the subfolder for each occurrence of a file in that subfolder.
(i.e. Subfolder "M1000A" may be listed 5 times, if it finds 5 images in that folder).


That's where my confusion is... I'm trying to:
- Get just the subfolder to list once
- Click that subfolder and display all images inside that folder in a Lightbox to "Next" through them

So... the code may be out of whack, which is why I desperately need help.  lol


Thanks,
Shane
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 39206557
I would suggest starting a new question and make a working sample http://sscce.org 

Make sure to have a full working link including the serverside code.  My guess is what you need is part asp/vb and part javascript/jquery
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question