473,657 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Field s("small_img"). value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefo x) 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 1372
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********@yah oo.co.uk> wrote in message
news:42******** *************** @ptn-nntp-reader04.plus.n et...
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.Field s("small_img"). value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefo x) 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_da rkfalz.com> writing in news:eikkr5jVFH A.3024
@TK2MSFTNGP14.p hx.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_p ath%>" /></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("I D") %>"
target="_blank" >
<img src="images/mem_img/<%= objRS.Fields("m id1_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_da rkfalz.com> wrote in message
news:ei******** ******@TK2MSFTN GP14.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********@yah oo.co.uk> wrote in message
news:42******** *************** @ptn-nntp-reader04.plus.n et...
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.Field s("small_img"). value%>.jpg"
border=0 width=60 height=60 />

any help would be much appreciated.

Also - modzilla(firefo x) 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********@sbc global.net> wrote in message
news:Xn******** *************** ****@207.115.63 .158...
Gazing into my crystal ball I observed "Curt_C [MVP]"
<software_AT_da rkfalz.com> writing in news:eikkr5jVFH A.3024
@TK2MSFTNGP14.p hx.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_p ath%>" /></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********@yah oo.co.uk> writing in
news:42******** **************@ ptn-nntp-reader02.plus.n et:
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********@sbc global.net> wrote in message
news:Xn******** *************** ****@207.115.63 .158...
Gazing into my crystal ball I observed "Curt_C [MVP]"
<software_AT_da rkfalz.com> writing in news:eikkr5jVFH A.3024
@TK2MSFTNGP14.p hx.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_p ath%>" /></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
2496
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 resize these images from the database using the GD libraries. But I always get an error while opening the 'dynamic'-database-image:
5
2359
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 blank white image. Can one of you knowledgeable people please have a look at the code below and help please.
1
2048
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 partly, from a snipet I found in the user contributions to the "str_replace" function in the manual on php.net. However there is a small problem - it only works in uppercase. Please first see my code below and then a brief description of the problem:
3
2710
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 the fly, and still have the rollover work. I have taken the text off of the buttons, but cannot figure out how to do it with dynamic text using javascript and html. For example, in the columns of this row, I want to put "About...
3
1345
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 drawn because it appears that the connection limit is exceeded (I get a red X for the image). If I right click on the image and select "Show Picture", the image then shows up. Can someone tell me how I can prevent this from happening? I somehow...
3
13741
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. Everyone wants to do a java confirmation box when a user clicks the delete button. Fair enough, basic user design rules state that you should always confirm a delete action. There is also a consensus that the best way to do this is a template...
3
6682
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 with the html <img> tag), I can make the image visible or not, i.e. '<img style="visibility='hidden'" src='xxxx'/>'. But if I create the image dynamically with javascript: new Image() then try to modify the style, Safari chokes, and the Debug...
9
2948
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 got the core of the javascript from here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm I noticed in the demo that sometimes the content takes a long
3
3575
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 little website: 1. Small: DOWNsize of original image to be used as a thumbnail. 2. Medium: DOWNsize of original image to be used as user avatars/icons in forums or profiles.
1
3387
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. The problem is when it creates transparent PNG format image then and it pixel ate the image. e.g. If i am using a gradient in background then it vary in color range. Now when i used that php script it generates image successfully but it pixel ate...
0
8413
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2742
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.