Solved

Classic ASP View Images From Folder in Lightbox

Posted on 2013-05-23
3
807 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
  • 2
3 Comments
 
LVL 52

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 52

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 information …
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now