Pictures from a drop down menu

  • Thread starter Martin Proepper
  • Start date
M

Martin Proepper

I am trying to populate an order form. The user would select an item from a
drop-down menu and there will be 3 pictures of the item that I want to
display on the form.

Any suggestions?
 
K

Kevin Spencer

Here's the problem: How many items are in the drop-down list? For each item,
you will have an image. Now, if you want to do this all on the client-side,
we're talking about using JavaScript, and there are basically 2 ways you can
go:

1. Pre-load all the images when the page loads. Depending on the number of
items, this could slow the page down to a crawl while loading.
2. Load each image as needed. This will help the page load fast, but it will
make each image appear in the time it takes to download that image from the
server. Method number 1, while slow at first, would immediately display each
image.

Which would you like to use?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
M

Martin Proepper

Kevin,
I would like to use method 2, as the list could grow to be quite large, and
like you said preloading would take forever.
 
S

Stefan B Rusynko

For a large list and many pictures consider a server side script and DB solution




| Kevin,
| I would like to use method 2, as the list could grow to be quite large, and
| like you said preloading would take forever.
|
| "Kevin Spencer" wrote:
|
| > Here's the problem: How many items are in the drop-down list? For each item,
| > you will have an image. Now, if you want to do this all on the client-side,
| > we're talking about using JavaScript, and there are basically 2 ways you can
| > go:
| >
| > 1. Pre-load all the images when the page loads. Depending on the number of
| > items, this could slow the page down to a crawl while loading.
| > 2. Load each image as needed. This will help the page load fast, but it will
| > make each image appear in the time it takes to download that image from the
| > server. Method number 1, while slow at first, would immediately display each
| > image.
| >
| > Which would you like to use?
| >
| > --
| > HTH,
| >
| > Kevin Spencer
| > Microsoft MVP
| > ..Net Developer
| > What You Seek Is What You Get.
| >
| > | > >I am trying to populate an order form. The user would select an item from a
| > > drop-down menu and there will be 3 pictures of the item that I want to
| > > display on the form.
| > >
| > > Any suggestions?
| >
| >
| >
 
M

Martin Proepper

Unfortunately the site is hosted on a Linux Apache server that doesn't
support ASP.
They do support MySql. Any Java suggestions?
 
T

Thomas A. Rowe

You will need to look for a PHP solution.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
S

Stefan B Rusynko

Check if they support PHP and try PHP w/ MySQL




| Unfortunately the site is hosted on a Linux Apache server that doesn't
| support ASP.
| They do support MySql. Any Java suggestions?
|
| "Stefan B Rusynko" wrote:
|
| > For a large list and many pictures consider a server side script and DB solution
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | Kevin,
| > | I would like to use method 2, as the list could grow to be quite large, and
| > | like you said preloading would take forever.
| > |
| > | "Kevin Spencer" wrote:
| > |
| > | > Here's the problem: How many items are in the drop-down list? For each item,
| > | > you will have an image. Now, if you want to do this all on the client-side,
| > | > we're talking about using JavaScript, and there are basically 2 ways you can
| > | > go:
| > | >
| > | > 1. Pre-load all the images when the page loads. Depending on the number of
| > | > items, this could slow the page down to a crawl while loading.
| > | > 2. Load each image as needed. This will help the page load fast, but it will
| > | > make each image appear in the time it takes to download that image from the
| > | > server. Method number 1, while slow at first, would immediately display each
| > | > image.
| > | >
| > | > Which would you like to use?
| > | >
| > | > --
| > | > HTH,
| > | >
| > | > Kevin Spencer
| > | > Microsoft MVP
| > | > ..Net Developer
| > | > What You Seek Is What You Get.
| > | >
| > | > | > | > >I am trying to populate an order form. The user would select an item from a
| > | > > drop-down menu and there will be 3 pictures of the item that I want to
| > | > > display on the form.
| > | > >
| > | > > Any suggestions?
| > | >
| > | >
| > | >
| >
| >
| >
 
Top