trouble with ie vs firefox trouble with ie vs firefox
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

trouble with ie vs firefox

Started by nickfzx, December 21, 2006, 06:49:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

So first off my setup of cpmfetch works perfectly with no flaws in any browser that I have found.

Check it out here:

http://www.amateurillustrator.com/

What I want help with is the way internet explorer loads cpmfetch'd images:

In firefox when you load my homepage there are no problems during the loading...but when loading the page in IE, during the loading process, the formatting of the page messes up but then neatly fits back together once all the images are loaded.

look at the attached images, loading.jpg and loaded.jpg for a demonstration of what cpmfetch does in IE during loading.

It seems that it somehow picks random widths for the un-loaded images that cause the page to balloon out to the right.

This isn't a huge problem but as most people unfortunatly use IE it looks bad, especially for people with slower connections.

Any way to fix this?

Cheers

nick

Joachim Müller

Happens when <img> tags don't have a width and height attribute.

nickfzx

oh right

is there a way of fixing this?

maybe by setting a max width or something??

vuud

Quote from: nickfzx on December 21, 2006, 08:08:19 AM
oh right

is there a way of fixing this?

maybe by setting a max width or something??

If you can guarentee all your thumbnails are a particular size, you can hardcode the height and width into the cpmfetch calls.

Its gonna screw with any img that is not that size though
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

yeah thats what i thought...i have the cellattribute width set to 100 but that doesn't seem to come into effect until after the images are loaded.

is there no other way?

vuud

Quote from: nickfzx on December 21, 2006, 07:07:36 PM
yeah thats what i thought...i have the cellattribute width set to 100 but that doesn't seem to come into effect until after the images are loaded.

is there no other way?

You need to set it on the images...

There is a way to pass it through the options array... like imagewidth or something... i forget, maybe its in the docs
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

yeah but this will cause the images to distort right as they are all different width's...although none of them are over 100 pixels wide.

vuud

Quote from: nickfzx on December 21, 2006, 07:59:52 PM
yeah but this will cause the images to distort right as they are all different width's...although none of them are over 100 pixels wide.

Exactly, 2 posts up I said...
QuoteIts gonna screw with any img that is not that size though

I can't think of any other way to tackle it, well...  I suppose if you knew how much screen area the resulting grid of images would take you could wrap the whole call in a table with some transparent shims to force the height and width...

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

Joachim Müller

...or set the with property to a fixed width and apply some JavaScript onload gimmick to unset the width once the images have been loaded. Not an issue with cpmfetch imo, but a matter of your creativity. Call it missing feature if you want.

nickfzx

yeah, I knew it wasnt a bug with cpmfetch, just something with the way ie loads images...

ah well I will see if I can figure something out form your two suggestions.

Cheers

Nick

nickfzx

I actually figured this out just today....it dawned on me that the thumbnails were only stretching as far as the alternative text of the thumbnail was.

The alternative text was "click on the thumbnail to see the full sized image"   therefore the unloaded image was that long.

All I had to do was change the alternative text to "thumbnail" and now it look nice when loading in IE and Opera.

Just thought I'd post in case anyone else reads this with the same problem.

P.S.

Thanks GauGau for reactivating my account after it was blocked from posting for some reason.

cocostaff

I've a similar problem : under IE, some thumbail from specific albums (actually Velasquez and Grunwald albums) doesn't appear !
(i've tried width and height parameters in IMG tags, but no results...)

vuud

Quote from: cocostaff on March 14, 2007, 05:39:56 PM
I've a similar problem : under IE, some thumbail from specific albums (actually Velasquez and Grunwald albums) doesn't appear !
(i've tried width and height parameters in IMG tags, but no results...)

You have images that just don't appear??
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

cocostaff

Exactly, here is my homepage http://www.picturelive.net
But the link works well...

vuud

Quote from: cocostaff on March 14, 2007, 08:39:14 PM
Exactly, here is my homepage http://www.picturelive.net
But the link works well...

Wow!  Well whatever the shortcomings and failures of IE are - this cannot be tolerated.

Let me see what can be done before I release 1.9.12...

Stupid IE.  In the meantime tell people to switch to firefox :p

Here is the issue, and it seems to be a cpmfetch bug... Coppermine is doing a much better job of encoding stuff.  For instance, in the one I am looking at, I encode some things like spaces, but not other things.

In this particular one, at least a comma and a funny (whatever you call the %E1 entity) are not encoded.

So anyway, IE cannot handle it - who knows why.

Anyhow, I will have to look into it later tonight or tomorrow maybe for a solution - but thank you for bringing this to my attention!

Vuud

PS. Great site also, love it.


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

cocostaff

Quote from: vuud on March 14, 2007, 10:46:36 PM
Wow!  Well whatever the shortcomings and failures of IE are - this cannot be tolerated.

completely ugly under ie, i agree...


Quote
Stupid IE.  In the meantime tell people to switch to firefox :p
I've tried, but statistically more than half still you ie rather than ff

Quote
Here is the issue, and it seems to be a cpmfetch bug... Coppermine is doing a much better job of encoding stuff.  For instance, in the one I am looking at, I encode some things like spaces, but not other things.

In this particular one, at least a comma and a funny (whatever you call the %E1 entity) are not encoded.

So anyway, IE cannot handle it - who knows why.

Anyhow, I will have to look into it later tonight or tomorrow maybe for a solution - but thank you for bringing this to my attention!

Vuud
thank you for the this great mod and time you spend to improve it...

i'll be waiting for new versions  :P





vuud

Quote from: cocostaff on March 15, 2007, 10:48:08 AM
completely ugly under ie, i agree...

I've tried, but statistically more than half still you ie rather than ff
thank you for the this great mod and time you spend to improve it...

i'll be waiting for new versions  :P


Yeah, I know we can't really force people to use IE... although on my own site, I just may ignore CSS anomolies that happen under IE and put a big "Why does this site look stupid under IE"...  Thats assuming of course they are violating a standard on something...


Anyway...


I looked last night and I do encode the path, but apparently I am not doing a good job of it.  Today / tonight I hope to troll the CPG code and see how they do it - since apparently it works for them :)

Ah well

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

vuud


This issue has been fixed, and partially tested.  The full solution is included in release 1.9.12 which is not posted yet. 

When it comes online, you can download it from http://cpmfetch.fistfullofcode.com

Vuud

Thx to cocostaff for testing the fix.
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco