Click here to Skip to main content
15,898,134 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Image not to Reload again and again Pin
Christian Graus27-Nov-07 15:00
protectorChristian Graus27-Nov-07 15:00 
GeneralRe: Image not to Reload again and again Pin
Amjath Rahman27-Nov-07 15:10
Amjath Rahman27-Nov-07 15:10 
QuestionImages in popup Pin
Christian Graus27-Nov-07 9:15
protectorChristian Graus27-Nov-07 9:15 
AnswerRe: Images in popup Pin
Shog927-Nov-07 11:07
sitebuilderShog927-Nov-07 11:07 
GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 11:29
protectorChristian Graus27-Nov-07 11:29 
GeneralRe: Images in popup Pin
Shog927-Nov-07 11:36
sitebuilderShog927-Nov-07 11:36 
GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 11:51
protectorChristian Graus27-Nov-07 11:51 
GeneralRe: Images in popup Pin
Shog927-Nov-07 12:00
sitebuilderShog927-Nov-07 12:00 
Hmm...
So you're not already scaling the image and worried users might need to see more detail? You're just trying to get the image to "fit"?

If you are able to depend on a bit of JS, you can let the browser scale by picking whichever dimension fits... worst (width if clientWidth-imgWidth < clientHeight-imgHeight, else height) and specifying just that dimension as an attribute on the img tag (most browsers seem to understand that scaling proportionally is a good thing).

Alternately, if you can spare the server horsepower, you can use a bit of script to re-write the img src as the window loads, specifying the available space as query params and letting the server scale to exact dimensions. This looks great, since you can use high-quality scaling algorithm and fill whatever size of window you need. For obvious reasons, it does tend to be slower (although you can cache the most common dimensions). And, of course, you need to have a handler for image requests where otherwise you might get away with letting IIS serve them up raw. YMMV.


----
...the wind blows over it and it is gone, and its place remembers it no more...

GeneralRe: Images in popup Pin
Christian Graus27-Nov-07 12:10
protectorChristian Graus27-Nov-07 12:10 
Questionsolution? Pin
s4_sabahatf27-Nov-07 7:04
s4_sabahatf27-Nov-07 7:04 
AnswerRe: solution? Pin
pmarfleet27-Nov-07 7:15
pmarfleet27-Nov-07 7:15 
AnswerRe: solution? Pin
andyharman27-Nov-07 8:06
professionalandyharman27-Nov-07 8:06 
AnswerRe: solution? Pin
Dave Kreskowiak27-Nov-07 10:12
mveDave Kreskowiak27-Nov-07 10:12 
Questionhow to embed source in table using asp & VB script Pin
s4_sabahatf27-Nov-07 4:27
s4_sabahatf27-Nov-07 4:27 
AnswerRe: how to embed source in table using asp & VB script Pin
pmarfleet27-Nov-07 7:17
pmarfleet27-Nov-07 7:17 
AnswerRe: how to embed source in table using asp & VB script Pin
Dave Kreskowiak27-Nov-07 10:09
mveDave Kreskowiak27-Nov-07 10:09 
AnswerRe: how to embed source in table using asp & VB script Pin
Shog927-Nov-07 11:10
sitebuilderShog927-Nov-07 11:10 
Questionsolution pls Pin
sivaram praveen27-Nov-07 1:17
sivaram praveen27-Nov-07 1:17 
AnswerRe: solution pls Pin
pmarfleet27-Nov-07 1:32
pmarfleet27-Nov-07 1:32 
QuestionRe: solution pls Pin
sivaram praveen27-Nov-07 2:13
sivaram praveen27-Nov-07 2:13 
AnswerRe: solution pls Pin
Fred_Smith27-Nov-07 2:22
Fred_Smith27-Nov-07 2:22 
AnswerRe: solution pls Pin
pmarfleet27-Nov-07 2:23
pmarfleet27-Nov-07 2:23 
QuestionE-mail web page Pin
s4_sabahatf27-Nov-07 0:44
s4_sabahatf27-Nov-07 0:44 
AnswerRe: E-mail web page Pin
pmarfleet27-Nov-07 1:35
pmarfleet27-Nov-07 1:35 
QuestionEvent firing [modified] Pin
waddie126-Nov-07 22:05
waddie126-Nov-07 22:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.