• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

show images in select list

New Here ,
Aug 20, 2007 Aug 20, 2007

Copy link to clipboard

Copied

Hello,

I need to create a selection menu that display's JPG images. I have an Access DB that I store the image file names, when I query it and setup a select menu I can get it to display the text from the database no problem....however what I need is to display the actual JPG in the menu list.

Users will be selecting their option based on what the JPG looks like rather than the filename itself - so in the menu they need to see a small JPG image selection list.

Can anyone point me in the right direction?

(I've also been able to query the DB to get the filenames and place the JPG's in image holders within tables and directly on HTML page - but no go on any menu selectable type list.....)

Any help is appreciated....

TOPICS
Advanced techniques

Views

640

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 20, 2007 Aug 20, 2007

Copy link to clipboard

Copied

i believe what you wnat to do is not possible at all...
<select> and <cfselect> tags are not meant to display anything but text...

what you could do as an alternative, is display thumbnails of your
images with a checkbox next to each, and have your users check a
checkbox next to an image to define their selection?...

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 21, 2007 Aug 21, 2007

Copy link to clipboard

Copied

The thumbnail idea by Azadi is a good one because the select and cfselect tags were never meant to display images.

Goodluck
Brian

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 22, 2007 Aug 22, 2007

Copy link to clipboard

Copied

Thanks for the feedback. Here's what I've come up with.

I created my query and have the cfoutput generate table data <td> within a
table. This builds the table of images I want nicely. Then I inserted that
into a spry collapsible panel. Also on each image, I setup an "on-click"
action to set the variable I need. I've made the panel collapsed by default.

Now I can click on the panel - it drops down and shows me all the images;
when I click on the image I get the filename set to a variable for further
processing.

I didn't know the <cfselect> could only do text. That's a bummer because it
could be much more flexible and easier to do this with that option.



"Azadi" <azadi@sabai-dee.com> wrote in message
news:fadmic$abs$3@forums.macromedia.com...
>i believe what you wnat to do is not possible at all...
> <select> and <cfselect> tags are not meant to display anything but text...
>
> what you could do as an alternative, is display thumbnails of your images
> with a checkbox next to each, and have your users check a checkbox next to
> an image to define their selection?...
>
> --
>
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 22, 2007 Aug 22, 2007

Copy link to clipboard

Copied

LATEST
Thanks for replying..



"edbri871" <webforumsuser@macromedia.com> wrote in message
news:faft39$6nc$1@forums.macromedia.com...
> The thumbnail idea by Azadi is a good one because the select and cfselect
> tags were never meant to display images.
>
> Goodluck
> Brian


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation