Display Image Problem

This is a discussion on "Display Image Problem" within the JavaScript Forum section. This forum, and the thread "Display Image Problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 13th, 2007, 09:42
New Member
Join Date: Jan 2006
Location: Buckinghamshire
Age: 26
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Display Image Problem

Morning

I am creating an add page for a database in which a user can select which image code to assign to a new product, as a little extra I have created an image gallery below it so the user knows which Image they want to assign. This was working fine in a form select tag but I have had to edit it so the select tag now reads all the images in the folder using ASP. Any help appreciated, code below

Quote:
<head>
<script language="javascript">
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.form1.picture.options[document.form1.picture.selectedIndex].value
}
//-->
</script>
</head>
<body>
<form name="form1">
<select name="picture" id="picture" onChange="showimage()">
<option value=""
<%

Set Objekt=Server.CreateObject("Scripting.FileSystemOb ject")
Set Folder=Objekt.GetFolder(Server.MapPath("images/"))
FOR EACH sak in Folder.Files
if sak.Name="list.asp" then
end if
%>

<option>
<%=sak.Name%><%
NEXT
%>
</option>

</select>
<br /><p align="center"><img src="me.gif" name="pictures" width="99"
height="100">
</form>
Reply With Quote

  #2 (permalink)  
Old Jun 17th, 2007, 23:32
Reputable Member
Join Date: Dec 2005
Location: U.S.A.
Posts: 147
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to ScottR Send a message via Skype™ to ScottR
Re: Display Image Problem

I'm not an ASP guy but would it make sense to do the whole thing is ASP? Ditch the JS completely.
Reply With Quote
Reply

Tags
javascrip image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image display help.. [URGENT :( ] jahphill Web Page Design 6 Jun 6th, 2008 02:37
Image display question shammy2007 JavaScript Forum 2 Jan 16th, 2008 01:45
<li> problem :: How to make appear list-style-image while choosing display:inline sayamish Web Page Design 2 Oct 21st, 2007 05:19
[SOLVED] image display php code problem longstand PHP Forum 7 Oct 19th, 2007 17:28
Image Upload/Display Refresh Problem acruz ASP.NET Forum 1 Jun 20th, 2006 14:08


All times are GMT. The time now is 19:26.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43