473,396 Members | 2,014 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,396 software developers and data experts.

About showing GIF image in HTML

539 512MB
I don't know where to put this thread exactly, but i just want some recommendations about my problem....

I wonder why some of my GIF images doesn't show on my page.....

May i know what should be an image format to be used in HTML?

Here is the situation,
Im currently developing a form in JSP, every visit/refresh on that page will change the filename that will be used for confirmation.....
( common on sign-up forms )....

I have 50 GIF images(testing) on a specific location that will be used as the source of confirmation image,
Now, the first 10 images are made by my groupmates, and i added 40 for a realistic testing......

In every refresh, all the filenames(GIF) are processed and randomly returns a choosen filename and embed on html(through scriptlet),

Now, All of my images are perfectly shown except of those images that were made by my groupmates....

Im 100% sure that the generated filename exists.

Expand|Select|Wrap|Line Numbers
  1. <tr>
  2.                     <td>
  3.                         <img  src="<%="constants/".concat(url)%>" /> 
  4.                     </td>
  5.                     <td><input type="text" name="confirmanswer" size="10"/></td>
  6.                 </tr>
I've modified their work(GIF images), edit and save in uniformly choosen extension .GIF (not .gif), but it doesn't work either.....

What can you advice to me experts?

The JSP form above is only to illustrate the scenario..... i believe i forgot something here..... :(
Aug 1 '08 #1
5 2051
tharden3
916 512MB
well, I asked a similar question last week. One of the experts here told me that JPEG and PNG are the best to use.
Aug 1 '08 #2
sukatoa
539 512MB
well, I asked a similar question last week. One of the experts here told me that JPEG and PNG are the best to use.
Thank you so much for you quick reply,

Now i realize....
sukatoa
Aug 1 '08 #3
tharden3
916 512MB
Thank you so much for you quick reply,

Now i realize....
sukatoa
I didn't really give much detail as to why JPEG and PNG:
- JPEG and PNG are both compressed, so they'll take a lot less space.
- PNG actually is a smaller file size AND a clearer image than GIF. SO two bonuses there.
- I used GIF for a while, until I myself asked the question. There shouldn't be anything wrong with using it, but like I said, JPEG and PNG are the way to go.
Aug 1 '08 #4
sukatoa
539 512MB
Thanks for your reply,

Now, i have observed that some of my images with .JPG extensions does not show on other browsers,

In my case, all of my images are showing in Opera 9.51,
And i have attempted the following browsers (IE, FireFox) to test if they are showing also,

and i realize that some of those images does not showing,
So, i suspect the following:

1. case sensitivity of the extension files, ( .JPG to .jpg )
some of those images that doesn't show, after changing there case
extension, it now shows, but not all....

2. The image editor,

Can you tell me what are the best practices to manage images for presenting them on the browser?
Sep 4 '08 #5
David Laakso
397 Expert 256MB
I regret not being unable to give you any specific answer (s) to your questions, other than sometimes having a obsessive/compulsive "nit-picking" personality helps . Some questions you've answered yourself.

No-show images are often very difficult to track -- many, many factors -- play in the causes, among them: a non-valid document requiring some browsers to rely on faulty error recovery; incorrect path to the images and/or their directory (directories); mixed extensions and/or mixed uc/lc image extentions; corrupt images; not declaring image height and width (often an IE/6 issue); error in the script call; and more...
Sep 4 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

27
by: Gene Ellis | last post by:
Something strange is happening, but I bet it is a quick fix. My favicon image is showing up in the URL bar, for a couple of seconds, but then it disappears and the default browser icon is...
9
by: Terrance | last post by:
Good Afternoon: I was hoping if someone could share some light on a problem that I'm facing. When I create a Visual Basic.Net program and I use the XP style for my Window Forms and buttons; if I...
8
by: johkar | last post by:
I have two problems I cannot work out in the following tab code with Netscape 6. Problems are marked with all cap comments. One is that the background image is not shown in NS 6 (two places in...
10
by: bessington | last post by:
hey all, i'm having a rather bizarre problem.. the image tag i have declared in my xhtml is not showing in safari / konqueror but showing just fine in Firefox, IE, Opera... this is a complete...
3
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In...
9
by: frizzle | last post by:
Hi there, I have a site where i display all kinds of thumbnails, (all 100 * 100px), the thumbs are links (surprise! ;) ). They link to a page where someone can order the picture. If ordered, a...
3
by: steven | last post by:
Hi... I'm "ajaxifying" my image gallery and I have some code which creates the elements on the fly and places them on the page. Using firefox, the code works fine and the elements show up as...
0
by: Iain | last post by:
Hi I am using Borland Developer 2006 (C# code behind) to create a 3 Column CSS app. Fairly new to the .net platform and very new to repeaters. I have 2 repeaters on a page, both of which are...
0
by: punitshrivastava | last post by:
Hi to All, I am Punit Shrivastava.i created one html page for this i cde like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.