icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old September 7th, 2007, 5:09 PM   #10 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
Cache the image. That snippet of code adds just about 1% load to the server, and gives you about 100% compatibility with all browsers that render html correctly. Javascript can gracefully bow out when you program it correctly to, but what you didn't mention is that if it DOES bow out because javascript is turned off, you also don't get the benefit of it's fruit.

Also iexplorer's rendering engine reisizes images grainily. phpcopyresampled looks niiiice
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website]

Last edited by FredFredrickson; September 7th, 2007 at 5:11 PM.
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2007, 8:24 PM   #11 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
8,027 posts
Gave thanks: 48
Thanked 129 times
You're failing to get my main point here... The PHP version uses JavaScript too. I was merely stating that since he's using JavaScript to begin with, why bother taxing the server?

Quote:
but what you didn't mention is that if it DOES bow out because javascript is turned off, you also don't get the benefit of it's fruit.
Isn't that pretty obvious though? The way I said JavaScript should be used is to enhance the design when it can. If it can't be used, you're still presenting something decent.

I'm not sure what IE's resizing has to do with anything.

Honestly, you've been intelligent on this forum except this thread. I don't quite understand why...
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2007, 8:34 PM   #12 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
oh. honestly i didn't even read it. I just saw a php vs javascript option. if the php version uses javascript too, then then choice is clear.
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website]
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 7th, 2007, 8:35 PM   #13 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
8,027 posts
Gave thanks: 48
Thanked 129 times
Ok, cool. I'll take you out of my questional intelligence list again.
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks H for this great post!
Kayla (September 7th, 2007)
Old September 7th, 2007, 8:36 PM   #14 (permalink)
Senior Member
Super #1
 
FredFredrickson's Avatar
 
Joined in Nov 2003
Lives in New Hampshire
1,182 posts
Gave thanks: 3
Thanked 22 times
yeah I'm just being stupid. Because resolution information is regularly sent to php in the header information.. oh wait no it's not. crap.
__________________
The Coding Blog - Follow along as we discover and discuss everything it takes to code an entire website, start to finish! [Latest Entry: 4/4/08 - Starting a Website]
FredFredrickson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On