This Is FUCKED! Firefox is killing me.

Status
Not open for further replies.

Aequitas

New member
Feb 19, 2007
2,954
73
0
Canada
I know this should be posted in the design section but its going here just because it's pissing me off now, I'm currently cross testing my new website with Firefox and IE 6 & 7 and I've hit a brick wall maybe someone can help me out.

Firefox won't display the images on my site, however both IE 6 and 7 work fine and there is nothing wrong with my code (Unless Firefox wants to suck my dick), here is the code which displays the image.

Code:
<img src="<%# Eval("ImageLocation") %>" alt="<%# Eval("AltName") %>" />

I mean seriously how hard is that code to look at, nothing wrong there, unless Firefox really doesn't know how to read an image tag

Now if your wondering what the fuck is an Eval statement then don't worry its just a placeholder because my image location and my images alt tag are being pulled from the database and they display fine when the page is rendered.

I mean fuck the source code after it is rendered shows the image location just fine and it shows the alt information just fine and in IE 6 & 7 the images display on the page just fine, but in the newest Firefox it is only showing me the fucking alt tag information.

Any ideas on this because I'm moving onto something else until its the very last thing I've got to deal with, its just plain stupid.
 


Yeah, no one can tell anything until you load the page in Firefox, view the page source, and paste it here (View->Page Source).
 
you dont need to paste the entire source, just the relevant parts
chances are you have a mistake in your code and firefox caught that mistake
 
Yeah, no one can tell anything until you load the page in Firefox, view the page source, and paste it here (View->Page Source).

How do you do that? do you left click or something?.........sorry to be a dick but come on now if I can program a website and a database I think I can find the source code hahaha. (No pun intended by that statement).

But anyway I don't really see anything wrong with the rendered source code when viewed in Firefox, hence the reason why I did not post it in the first place but maybe I'm fucking blind today and missed a simple little thing. So here it is the source code for where the image is supposed to be displayed.
Code:
<p align="center"><img src="C:\Documents and Settings\Adam\My Documents\Visual Studio 2005\Projects\Torrent Site\images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg" alt="test Drive Unlimited torrent" /></p>
The above code was viewing the source with the newest Firefox now here is the funny part, the below is the source code (exactly the same page and area) when viewing with IE 6.

Code:
<p align="center"><img src="C:\Documents and Settings\Adam\My Documents\Visual Studio 2005\Projects\Torrent Site\images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg" alt="test Drive Unlimited torrent" /></p>

If your wondering why the fuck the file name of this image is a GUID, its because I do that so after I upload a hundred billion images to that folder I don't get two of the exact same names, not like it matters but whatever.

The funny thing is both source codes are exactly the same and yet IE 6 shows the image just fine but Firefox does not show an image it just shows the alt tag.

There is nothing else around it that has anything to do with the image and the other images I've got on the site all work fine, the only problem I can possibly think of right now and its something that I'm about to go and double check is that for some reason Firefox does not like long ass file names and if it sees one, instead of doing all the work to read it, it just displays the alt tag.

I'm off to do a test where I'll give it a decent name something easy like Firefox is a stupid bitch.jpg and see if it displays it then, other then it maybe being a problem with the GUID I don't know.

Also the file name in the folder matches exactly like it should.
 
Ok I just changed the image name to firefox is gay.jpg to see if the GUID could be effecting firefox somehow and still no image being displayed, I'm almost wondering if their is some sort of fucked up filter on my firefox that does not display .jpg files because it seems to me like all of the .gif files are being displayed just fine.
 
I have found a couple of bugs with the latest version of firefox, which are:
a) on mac's, the whole page only renders on the smallest strip on the left side of the window... tested on a few different comp.'s... def fucked up
b) on pc, when i click a link which is set to open in a new window, it first pops up an alert window that says "url has no properties" but then displays fine

I doubt these are directly related, but I have found the latest release of firefox to be uncharacteristically quirky.
 
It's cause you are using absolute paths, get rid of the C: drive crap, example

If this is where your HTML file is

C:\Documents and Settings\Adam\My Documents\Visual Studio 2005\Projects\Torrent Site\images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg

Then in your image src you just put

images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg

Alternatively you can download Apache and set up a localhost and do it like that

http://localhost/images/a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg
 
  • Like
Reactions: Aequitas
It's cause you are using absolute paths, get rid of the C: drive crap, example

If this is where your HTML file is

C:\Documents and Settings\Adam\My Documents\Visual Studio 2005\Projects\Torrent Site\images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg

Then in your image src you just put

images\a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg

Alternatively you can download Apache and set up a localhost and do it like that

http://localhost/images/a890b734-6e3f-4a64-8812-b1759e4a31ea.jpg

Yes could be and I've got apache and I'm actually using Visual Studio Web Developer to create this web site, its like running a virtual server, the file path is still http://localhost/mysite.aspx when I launch it but if the absolute file paths are the problem then why does it work in IE 6?

Unless Firefox is just a pain when dealing with this crap on a local server, I'll try and get rid of the absolute file path and re-test in firefox and report back.
 
Aequitas said:
when I launch it but if the absolute file paths are the problem then why does it work in IE 6?
Because IE 6 is a piece of shit, personally I code for Firefox because if they are having problems in IE at least I can point them to an aff link to download Firefox :)
 
It's cause you are using absolute paths, get rid of the C: drive crap

When I upload the image location to the database I'm actually not using an absolute path I'm using Server.MapPath("images/" which maps to the path of the server (Example: ~/images/file.jpg) but since I'm dealing with this on my own computer its calling the full absolute file path (C:\mycomputer\whatever).

You see I've set this site up so all I would need to do was log into an admin account and upload shit to the database and won't have to deal with anything on my own computer, all content added to the site could be done from being logged in, the code is correct but since I'm not running this on online yet it fucks up when I upload the image.

Still blows my mind that IE 6 would show the image and Firefox being so supreme would not but then again Firefox supposably does things by the books and does them in a way they should be done correctly, microsoft is a POS haha.

EDIT: ILLUSION thanks bud it worked, fucking file paths I should have cought that myself but after working on something all day your mind starts to think its a bigger problem then it actually is (Not working on the problem all day I mean coding for 10+ hours straight makes you think all fucked up)

Anyway at least my database upload code is still all correct, once its online I can do all my admin things without having this issue.
 
Hmmm... I dunno what you're talking about mang... I'm still confused (you damned ASPX people ;))

Uhm, and in regards to your last little thought there, yes, all web images should be in 72dpi RGB. If ever in doubt, use Photoshop's Save To Web.
 
Hmmm... I dunno what you're talking about mang... I'm still confused (you damned ASPX people ;))

Uhm, and in regards to your last little thought there, yes, all web images should be in 72dpi RGB. If ever in doubt, use Photoshop's Save To Web.

I just edited the above message to say it worked out, my bad with not noticing file paths, you see I didn't think about that because I've set the entire website up so that once its online, all I need to do is log-in upload an image, add some content, approve some content click a button and BOOM the content is displayed across a thousand different pages if I wanted too.

The trick is the Server.MapPath funtion only works 100% when the website is hosted online haha.

Basically one click done type of shit.......thats the power of ASPX haha.
 
Heh... I have server.mappath over here on classic ASP.

Dave (still continues to try to come up with excuses not to learn dot-net :D)

haha Classic asp oh man your fucking crazy, move over to asp.net 2.0 its a dream compared to classic.

EDIT: Wow lots of editing going on today, anyway one super easy thing they improved upon was data access.....and use sql and not mysql, fucking olb.whatever fucking useless shit and use VBScript haha
 
Status
Not open for further replies.