Solved

Classic ASP View Images From Folder in Lightbox

Posted on 2013-05-23
3
844 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 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