?
Solved

Classic ASP View Images From Folder in Lightbox

Posted on 2013-05-23
3
Medium Priority
?
849 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 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