Image Display/controling Options
I've got a directory site for accommodation providers. I would like them to have the ability to display a couple of images on their details page. I can easily set it up so they upload images to my server and DB and are displayed etc etc... But I would rather have them just provide the links so that the pictures remain on their website etc....
The only issue I have is what happens if it is a bad link. By uploading to my server I can remove the risk of images not appearing, but by using a link, is there a way of 'testing' whether there is an image at the end of the link. Is there a script out there capable of verifying if an image file is where it should be for veiwing? My initial thought was to have a script that tests the image link for a width <> 0. On the page I would use an IF statement to allow displaying of the image if the image existed..... BUT HOW ?
View Replies
ADVERTISEMENT
I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.
Following is the code to list vehicles: ....
View Replies
View Related
The code that I have has 2 drop down boxes dd1 (visible) and dd2 (hidden). Based on the option selected in dd1, dd2 should be visible and populate options. I think I can have OnChange script but how could I return the value and put it in the SQL query (see variable in red in thecode)? Code:
View Replies
View Related
I've built a job site, that allows employers/agencies to load their logos up which appear on each advert. Currently the max size limits of images are 600*200. Anything under these dimensions are uploadable.
The problem is that I have a control page that displays and manages all their logos. If their images are of different widths, it makes the page look tacky. So, is there a way of making all their thumbnails that appear on this page, all the same widths, but still in proportion height wise?
ie:
600*200 will display 200*66. (1/3 size)
400*180 will display 200*90. (1/2 size)
In otherwords, the width to be 200px, and proportional height wise.
Any ideas on how to do this?
View Replies
View Related
This worked fine for enlarging my images until i put it onto a secure server, anyone know how i can fix it ??? just comes up with the standard box with a red cross in it .. and the url when i click image properties says: http://url/images/<%=request.querystring( which is only part of the code)
View Replies
View Related
I have some error in displaying Image in the fields here is the Code:
<tr class="productListing-<%=even%>">
<td class="productListing-data"> <img src=""" & <%=rsProducts("product_image")%> & """ width=""20"" height=""20""/><br /></td>
<td class="productListing-data"> <a href="?mod=product&cat_id=<%=cat_id%>&product_id=<%=rsProducts("product_id")%>"><%=rsProducts("product_name")%></a></td>
<td class="productListing-data"> <%=rsProducts("manufacturer_name")%></td>
<td class="productListing-data"> <%=strCurrency%> <%=RoundNumber(rsProducts("product_price"))%></td>
</tr>
Where is the error ....
View Replies
View Related
I've been creating a page in asp which displays records from an access database. I have limited the number of records displayed to 5 per page. If there are more than 5 records then the user can click next to view the next 5 and so on.
My Image field in the database has a data type of "text" and then i put the path to the image. However when i run my asp page it displays the path as text and im not so sure were im going wrong.
Here is a section of the code used to display the recordset.
For intRec=1 To rs.PageSize
If Not rs.EOF Then
Response.Write "<tr>"
For Each fldF in rs.Fields
Response.Write "<td>" & fldF.Value & "</td>"
Next
Response.Write "<tr>"
rs.MoveNext
End If
Next
Response.Write "</tbody></table><p>"
View Replies
View Related
I have asp pages running from a MySQL database.
I have placed a path in the required field (although not quite sure on
the correct format).
My asp page is just displaying the text path instead of the image.
I'm using response.write.
The Folder is called : images
This folder is within : wwwrootworksimagesimage1.jpg
How should I display this in the MySQL field ?
I have the field as type: VarChar
How do I display image1.jpg on my asp page ?
View Replies
View Related
I've been trying to find information on displaying images from an Access database, however, the information that I've discovered does not clearly define the steps necessary to display the image with text. Can anyone provide a good reference or explain it to me (like a five-year-old) the complete steps to display an image from an Access database using ASP?
View Replies
View Related
I'm trying to display an image which is stored in a database, followed by some other information, but I'm having some issues. It's stored in an access database as an OLE object. The code I've got right now is:
<%
Response.ContentType = "image/gif"
%>
<img src="<%= Response.BinaryWrite(rs("ItemImage")) %>">
The error message I get displayed "The image cannot be displayed because it contains errors"
I also tried it like this:
<%
Response.ContentType = "image/gif"
%>
<img src="<%= rs("ItemImage") %>">
which didn't display any errors, but also didn't display the image.
Any ideas where I'm going wrong with this?
View Replies
View Related
I have an image database, I want my images to be displayed like google when you try to search an image - displays horizontally.
How would I check if the first row already has, say 5 images, and then add another row for the next set of images and so on?
can someone show me a tutorial, an article for this one?
mine doesnt require to search for any images, just concerned with the display.
View Replies
View Related
I need to be able to display an image if the time is between two times. Here's the code I have, but it doesn't work.
dim strLink1, strLink2, strLink3
dim tcurrent, tstart1, tend1, tstart2, tend2
tcurrent = now()
tstart1 = "3/1/2006 7:00:00 PM"
tend1 = "3/1/2006 8:00:00 PM"
If Now() >= tstart1 OR Now() <= tend1 Then
'if tcurrent > tstart1 or tcurrent < tend1 then
strLink1 = "/images/2.jpg"
else
strLink1 = "/images/1.jpg"
end if
When I look at the page, the image never changes. It just always displays 2.jpg and not 1.jpg. I need help ASAP!
View Replies
View Related
I have a image of an item and below it have a text which says "View larger Image".
so when someone clicks on the text i need to show them a bigger image from database
so what i am trying to do is open a new pop up window and show a larger size image
<%
rsimage=rsproducts("Large_Picture")
%>
<a href onclick="showpic('rsimage')">View Large Image</a>
and the javascript function is like this
<script language="JavaScript">
function showpic(pic)
{
popupWin = window.open("pic", "open_window", "location=1, width=640, height=480, left=0, top=0")
}
</script>
right now whats happening is i see a new pop window but message says
"Page cannot be Found"
View Replies
View Related
I want to provide random image on my asp page. the image will display according to products searched by user.
e.g.
if user enter pharma machine in search box, in result page the banner of pharma company will display. i.e. the banner of manufaturer/exporter of pharma machine will display.
for this i have comapny info table in database
table: comapny_info
fields in comapny_info:
company_name
products (comapny products)
description (company_description)
banner (yes/no)
dusring registration, comapny has to specify whether it wants banner or not. so if there is yes in banner and prodcuts match the search string then banner will display.
this is according to the product seaarched by user.
any idea?
View Replies
View Related
How to display the images from a lightbox randomly?
I have saw the image from a lightbox in the istockphoto website, it can display the images inside the lightbox. how to do it?
View Replies
View Related
How would I do it for DATE instead of Day of the week?
View Replies
View Related
i want to display images in my search result page according to search text enetered by user. and i want more than one images display randomly.
View Replies
View Related
i have a database..(pics.mdb)
1 table
pics(table name)
id,file,display(3 fields)
4 records..
1,pic1.jpg,yes
2,pic2.jpg,no
3,pic3.jpg,yes
4,pic4.jpg,yes
what line of code do i use on my asp page to display the picture where display is yes?
View Replies
View Related
Im trying to display a default image on my asp page that pulls data from a sql server database but i can't get the default image to display. I get error messages saying type mismatch everytime on line 25... Code:
View Replies
View Related
I have catalogue online but some of my items have no images. When there is no image I would like to show a note: response.write("There is no images at this time.") instead of the Icon of the image missing. I tried several ways but it ends up showing the response in all my records regardles if there is no image.
How would that be applied to the code below?
<% If (rsNeat.Fields.Item("product_image").Value) <> "" Then %>
<a href="#" onclick="MM_openBrWindow('cat_images/<%=(rsNeat.Fields.Item("product_image_big").Value)%>','','width=450,height=450 ')">
<img src="cat_thumbnails/<%=(rsNeat.Fields.Item("product_image").Value)%>" alt="" border="0" />
</a><% End If %>
View Replies
View Related
On my index page I have got an area for one product to be displayed randomly from the
database. I have got it workign, but there is one problem i cant get my head around, here is the code so far:
' Initialize ASP RND() function
Randomize()
intRandomNumber = Int (1000*Rnd)+1
strsql = "SELECT TOP 1 art_Artist, art_Title, Rnd(" & -1 * (intRandomNumber) & "*cat_ID)" &_
"FROM eventDisplay " &_
"ORDER BY 3"
The code above isnt working and its when i try and draw out more that one value, as in art_Artist and art_Title.
It works fine if all I want is art_Artist, but as i said when i try to draw out more than one value the randomize function doesnt work.
View Replies
View Related
I am trying to display records ( text and images) from a database. I get the text displayed but the image is displayed as a large series of Asscii text.
Connect.open "DSN=Rentals"
'declare sql statement that will query the database
query = "Select * FROM RentalTable WHERE Location LIKE '%"
query = query & Replace(request("varLocation"), "'", "''") & "%'"
query = query & " AND PropertyType = '" & Replace(request("varPropertyType"), "'", "''")
query = query & "' ORDER BY DateAvailable"
RS.Open query, Connect
do until RS.EOF
%>
<table width="75%" border="1">
<tr>
<td><%=RS("Address")%></td>
<td><%=RS("Location")%></td>
<td <%
Response.ContentType = "image/gif"
Response.BinaryWrite(rs("Image1")) %>
</td>
</tr>
</table>........
View Replies
View Related
Hi, I am trying to output an image using a filename from a database.
My code:
Response.Write("<img src='uploaded/" & bannerRecordSet("Banner_Image_File") & "'>")
Response.Write("<img src='uploaded/homepage1.jpg'>")
The first example works but doesn't display the image
The second example works and always displays the image
I don't know what is wrong with my code as the images are definitely on the server.
View Replies
View Related
principally I'm a photographer, and in the absence of any image galleries I could make sense of I created my own asp pages in Dreamweaver displaying images from a path stored in a database. These can then be paged through, all done using server behaviours in Dreamweaver. However, because I wanted to include some text next to my images, again a field in the database, I have to scale them down. I would like to give the user the option to see a larger version of the image on display, preferably in a pop-up window that is then closed by the user before they continue scrolling through the images....
View Replies
View Related
Looking for some good resources on coding an existing page to display images that are uploaded from a secured admin section. I.E. The only individual I want adding images to the page is the one I give permission to behind our Staff Section.
The Picture page is open to the public. Currently I have to create thumbnails, upload those then upload the full size image and then link it all on the pictures page. Looking for a way to let the end user do this themselves.
Just hoping to get some leads on how I can go about doing this. Do I need to save the images to a database, or can I just save them to a folder?
View Replies
View Related
Could someone help extend this ChangeImage function to also display a different hyperlink underneath the newly selected image?
<script language="javascript">
<!--
/*Combo Box Image Selector:
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free JavaScript here!
*/
function showimage()
{
if (!document.images)
return
document.images.pictures.src=
document.username.u_BrokerID.options[document.username.u_BrokerID.selectedIn
dex].value
}
//-->
</script>
<form name="username" method=post action="join_step4.asp" onSubmit="return
CheckForm();">
<SELECT NAME='u_BrokerID' size='1' onChange='showimage()'><OPTION
VALUE='0'>--Select a Broker--</OPTION><option
value="/catamaranco/images/brokers/john_2.jpg">John Anderson</option><option
value="http://www.catamaranco.com/images/brokers/staley_2.jpg">Staley
Weidman </option>
<input type=submit value=submit>
</form>
<br><br>
<a href="Site1.asp">Change this url depending on the value of the image
selected in the dropdown?</a>
View Replies
View Related
I have images stored in database how can display them in asp?
View Replies
View Related
I have been fighting with this for days now, and I can't seem to get it to work. Images are stored in an Access db as an OLE object. I have the following on my page Code:
View Replies
View Related
I would like to display a lot of binary source image in one html document. Those image are read from ms acess database
I know only read and display one image, such as:
Response.ContentType = "image/jpeg"
Response.BinaryWrite rs.Fields("iamge")
But, this cannot display any text and other image, only an image can see in the browser.
View Replies
View Related
i thought id post it and see what more experienced people think. With firefox now the browser of choice with people in the know their lack of VBScript support is causing me problems. If i want to say validate my forms i must now do it on the server-side (which is probably safer anyways). But things like pop-up warnings ??? or if i want to perform _OnLoad, _OnClick, _OnChange events , what do i do ?? or more to the point what are my options if any. What is the general opinion on using VBScript with ASP pages.
View Replies
View Related
The code for ShadowUploader works great for me when I have it on a page by itself. My problem arises when I try to add other buttons. The “Upload” button still works but the other buttons act like just another “Upload” button. What am I overlooking?
<% Option Explicit
Response.Expires = -1000' Make browser not cache pg.
Response.Buffer = True' Buffer content so Response.Redirect will work.
%>
<!-- #include file="~incl/ShadowUploader.asp" -->
<!--#include file="~incl/~config.asp"-->
<!--#include file="~incl/jpsutility.asp"-->
<!--#include file="~incl/menu.asp"-->
<!--#include file="~incl/misc.asp"-->
...............
View Replies
View Related
I have an ASP variable which is a certain number. I want to create a Select tag in a form, which will be populated up to this number. So, for example, if my number was 7, you would have a list of numbers between 0 and 7 to select.I'm not sure how to do loops, but I had an idea that the code would look something like this:
Code:
<select name="select2" id="select">
<%
for i=0 to i=varNumber
Response.Write ("<option value='"& i &"'>"& i &"</option>")
rsBooking.MoveNext
%>
</select>
but, as you might guess, this doesn't play!
View Replies
View Related
I need suggestions to allow my users the ability to print reports from my ASP application that will be quick and easy setup. I need them to choose an option such as
Print all checks for the current week
and receive an output of 1 page per employee . Currently I have the page so someone can view 1 employee on the screen and manually print. But I am looking for some web based report delivery method that will be quick to implement so the user can preview the batch of reports and then print. Similiar to if you were running a report in access.
View Replies
View Related