Solved

Classic ASP View Images From Folder in Lightbox

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Group by correlation 4 58
Classic ASP, Search Recordset on pick list change 1 68
ASP Button to clear text 4 57
Html CheckBox obtain Its Value 5 19
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 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