473,378 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

dynamic images problem...

I'm building a site that requires images to be placed into a table
dynamically - the name of each image is drawn from a database reference.
(e.g database entry is "images/image1.jpg" etc). The problem is that when an
image is dynamically inserted in this way (infact its only the location of
the file thats dynamically rendered - not the image itself), i have a 2-3
pixel gap at the bottom of each image. Non dynamically attached images do
not show this behaviour. - I dont understand why this should happen.
I'm using asp 3.0 with vb-script and the image entry is expressed such,
<img src="images/mem_img_sml/<%= rstSearch.Fields("small_img").value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefox) decides that i need a password to access my
localhost - but there isnt one! - any suggestions? It wont let me into my
own computer lol

AS
Jul 22 '05 #1
5 1364
show where this is written in the html...
Is there a border on the TD or is there a space before/after the IMG?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Apple Sauce" <ja********@yahoo.co.uk> wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
I'm building a site that requires images to be placed into a table
dynamically - the name of each image is drawn from a database reference.
(e.g database entry is "images/image1.jpg" etc). The problem is that when
an
image is dynamically inserted in this way (infact its only the location of
the file thats dynamically rendered - not the image itself), i have a 2-3
pixel gap at the bottom of each image. Non dynamically attached images do
not show this behaviour. - I dont understand why this should happen.
I'm using asp 3.0 with vb-script and the image entry is expressed such,
<img src="images/mem_img_sml/<%=
rstSearch.Fields("small_img").value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefox) decides that i need a password to access my
localhost - but there isnt one! - any suggestions? It wont let me into my
own computer lol

AS

Jul 22 '05 #2
Gazing into my crystal ball I observed "Curt_C [MVP]"
<software_AT_darkfalz.com> writing in news:eikkr5jVFHA.3024
@TK2MSFTNGP14.phx.gbl:
show where this is written in the html...
Is there a border on the TD or is there a space before/after the IMG?


Additionally, if there is a carriage return after the TD this will also
produce that effect, so:

%>
<tr><td><img src="<%=image_path%>" /></td></tr>
<% next

should stop that from happening. (To the OP) Of course, if this is not
truly tabular data, you should not be abusing tables, use CSS instead.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #3
here is the table i wrote, as you see there's no border - below is the css
style for the <TD> tages, here there is a border but this does not affect
static images in any way, only the dynamically labelled ones...

<table border="0" width=670 cellpadding=0 cellspacing=0 >
<tr>
<td width=175 height=210 class=main>
<a href="ft_artist_large1.asp?id=<%= objRS.Fields("ID") %>"
target="_blank">
<img src="images/mem_img/<%= objRS.Fields("mid1_img") %>.jpg" border=0>
</a>
</td>... etc.

td.main{

border-width: 1px;
border-style: solid;
border-color: #CFC6B1;
background-color:none;
}

When i select the image (as in drag over it in IE), the whole image is
selected - including the 2 or so pixels of white space bellow, as if that
now belongs to the image. It does seem strange - have a look
http://mafa.org.uk/new/artists.asp , you will see the larger image has this
extra space beneath it yet the static images dont.

Hope you can think of something lol - and thanks for replying.

AS

<td width=10 height=210></td>
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:ei**************@TK2MSFTNGP14.phx.gbl...
show where this is written in the html...
Is there a border on the TD or is there a space before/after the IMG?

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Apple Sauce" <ja********@yahoo.co.uk> wrote in message
news:42***********************@ptn-nntp-reader04.plus.net...
I'm building a site that requires images to be placed into a table
dynamically - the name of each image is drawn from a database reference.
(e.g database entry is "images/image1.jpg" etc). The problem is that when an
image is dynamically inserted in this way (infact its only the location of the file thats dynamically rendered - not the image itself), i have a 2-3 pixel gap at the bottom of each image. Non dynamically attached images do not show this behaviour. - I dont understand why this should happen.
I'm using asp 3.0 with vb-script and the image entry is expressed such,
<img src="images/mem_img_sml/<%=
rstSearch.Fields("small_img").value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefox) decides that i need a password to access my
localhost - but there isnt one! - any suggestions? It wont let me into my own computer lol

AS


Jul 22 '05 #4
Awww, Thank you Adrienne!!! - thats what it was - my </td> tags were on the
next line down fron the image link - this is how I like to read my code but
i guess it must be bad practice. Never before has this presented a problem -
but you were right on the money with your suggestion and I can't thank you
enough, I dont think I ever would have thought of changing that.

AS
"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn***************************@207.115.63.158. ..
Gazing into my crystal ball I observed "Curt_C [MVP]"
<software_AT_darkfalz.com> writing in news:eikkr5jVFHA.3024
@TK2MSFTNGP14.phx.gbl:
show where this is written in the html...
Is there a border on the TD or is there a space before/after the IMG?


Additionally, if there is a carriage return after the TD this will also
produce that effect, so:

%>
<tr><td><img src="<%=image_path%>" /></td></tr>
<% next

should stop that from happening. (To the OP) Of course, if this is not
truly tabular data, you should not be abusing tables, use CSS instead.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #5
Gazing into my crystal ball I observed "Apple Sauce"
<ja********@yahoo.co.uk> writing in
news:42**********************@ptn-nntp-reader02.plus.net:
Awww, Thank you Adrienne!!! - thats what it was - my </td> tags were
on the next line down fron the image link - this is how I like to read
my code but i guess it must be bad practice. Never before has this
presented a problem - but you were right on the money with your
suggestion and I can't thank you enough, I dont think I ever would have
thought of changing that.

AS

Glad I was able to help. This "bug" has been around for a long, long,
time. As I said before, if this isn't tabular data, you're better off
using CSS.

"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn***************************@207.115.63.158. ..
Gazing into my crystal ball I observed "Curt_C [MVP]"
<software_AT_darkfalz.com> writing in news:eikkr5jVFHA.3024
@TK2MSFTNGP14.phx.gbl:
> show where this is written in the html...
> Is there a border on the TD or is there a space before/after the
> IMG?
>


Additionally, if there is a carriage return after the TD this will
also produce that effect, so:

%>
<tr><td><img src="<%=image_path%>" /></td></tr>
<% next

should stop that from happening. (To the OP) Of course, if this is
not truly tabular data, you should not be abusing tables, use CSS
instead.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Johannes Götzinger | last post by:
hello everyone, I use a script to save .jpg-images in a mysql database. Another small script outputs the database-stored-image to the browser (getdbfile?id=1). All works fine. Now I want to...
5
by: K | last post by:
I have found a script online that I want to use (I am new to PHP). It creates dynamic images based on the text that you pass it. However, no matter how I try, I can't get anything other than a...
1
by: duncan.lovett | last post by:
I am working on a graphical heading generator for a clients website as their server does not have the GD library or similar plugins for dynamic image generation. I have achieved the result...
3
by: JOSEPHINE ALVAREZ | last post by:
I have this code that I want to use to do a rollover. However, because the company I am doing it for is continually changing the text, I want to be able to use dynamic text to change the text on...
3
by: Ken Varn | last post by:
I have an ASP.NET page that draws over 32 dynamic images using an HttpModule object through the <IMG> tag. Since IIS under Win2K Pro has a limit of 10 connections, some of the images do not get...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
3
by: Joe Cox | last post by:
I am having a problem with style properties for dynamic images in Mac OS X Safari. By dymanic images, I mean images allocated with the javascript 'new Image()' call. With static images (created...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
3
by: =?Utf-8?B?UiBSZXllcw==?= | last post by:
Hi! This discussion may help other programmers get a better idea of how to save uploaded images through a website. Why? Well currently, I save 3 versions of every uploaded image on my own...
1
by: neovantage | last post by:
Hey all, I am using a PHP script which creates headings at run time in a sense at page execution. I am stuck a with a very little problem which i am sure i will have the solution from experts. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.