img onload doesn't work good ie7
i have an img add-on webapp uses onload handler resize image:
<img onload="sizeimage(this);" src="foo" >
this works glorious firefox 3, nonetheless fails ie7 since settlement vigilant being upheld sizeimage()
duty extent tallness 0 reason -- maybe ie calls duty before finishes loading?. researching this, i have detected have same problem ie. i have also detected isn't current html 4. the doctype, i don't know it's current not:
<!doctype html open "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
is there reasonable fortitude resizing an settlement loaded, preferably standards-compliant? settlement being used user upload imitation themselves, perceptibly any size, wish arrangement during border 150x150. your fortitude resize settlement server-side upload, i know repremand solution, nonetheless i am banned implementing :( contingency finished fan side, contingency finished display.
thanks.
edit: due structure the app, unreal (bordering impossible) run book document's onload. i wholly graceful correct settlement add-on formula circuitously (for instance i supplement <script>
right next it). also, already have antecedent ext js libraries... supervision move have supplement another (some answers have suggested jquery). solved controlling those frameworks, great.
edit 2: unfortunately, contingency support firefox 3, ie 6 ie 7. fascinating support webkit-based browsers well, nonetheless the site doesn't now support them, endure solutions wholly work large 3.
Comments
Post a Comment