navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Drw results to a photo gallery

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Drw results to a photo gallery
Page: [1]
 
mjmtravel

 

Posts: 257
Joined: 7/30/2006
Status: offline

 
Drw results to a photo gallery - 8/16/2008 9:42:03   
I have 10 photos in a database table that are links to the image file on the web site. I can use the drw to post the photo results in a basic table as thumbnails, but I would like to post them to some sort of nicer photo gallery whether flash or the one in front page 2003.

Is this possible or has anyone successfully done it before. I have checked this forum pretty well and even hotscripts.com with not much luck.

I just want the results to show a little better than the same old boxy results of a table, nothing crazy just a little nicer.
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Drw results to a photo gallery - 8/16/2008 23:12:06   
How 'bout instead of placing them in a table in the DRW, instead place them in variables. Then response.write them wherever you wish.

Or you could search on "lightbox". Have you tried that? Lightbox that is?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to mjmtravel)
mjmtravel

 

Posts: 257
Joined: 7/30/2006
Status: offline

 
RE: Drw results to a photo gallery - 8/17/2008 8:47:19   
Roger
The first one sounds better, I did look at lightbox and seems a little more complex than what I need. I do need the photos to load in the results page along with the other information I'm querying also if that makes a difference.

Is there some tutorial for response write code. Can you give me a idea how that works!
Thank you very much

(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Drw results to a photo gallery - 8/17/2008 22:48:30   
Well, I'm not really talking about any sort of canned package at all. What I "might" do depending on my skill level is to set up variables or an array to store the href to the image. Then you could place the image in any arrangement you want and in any JS or whatever you want.

For instance, if I want 10 images, I would do something like this at the beginning before any DRW:

<%ReDim myImages(9)%>

Which would bild us an ASP array of 10 elements (arrays are zero-based meaning the first one is 0 and not 1).

Now, 'inside' the DRW where you would normally display the image from a database with something like this:

<img src="<%=FP_FieldVal(fp_rs,"myImage")%>">

you would now do something like this:

<%myImages(fp_iCount-1)=FP_FieldVal(fp_rs,"emailPass")%>

and what that would do is store the image filename in the array. See "fp_iCount" is the item number of the DB record in the loop and to match with our array item, we subtract 1.

So now, anywhere on a page we want to use that image file name, we use <%=myImages(n)%> where 'n' is a number from 0 to 9. Now my comfort level is quite high with arrays and ASP but if you're only experience is with the DRW, this may not be what you're looking for.

Does that help any?

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to mjmtravel)
mjmtravel

 

Posts: 257
Joined: 7/30/2006
Status: offline

 
RE: Drw results to a photo gallery - 8/18/2008 20:34:44   
Roger

Yes that gives me some ideas, thank you. I will play with it this week and see what I come up with.

Thanks again

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Drw results to a photo gallery
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts