Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35788
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Image load problem: OK in my Win 7, not in either Win10 |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <f38f3d44-7c43-4483-a82c-fb0159fd941b@googlegroups.com> <8b16a9d8-6d22-47b8-8e2d-13595c1fad71@googlegroups.com> <f06ba9ab-2e6f-4a4b-a496-473b2d72f7aa@googlegroups.com> <4bde13a8-d268-434c-8c90-399efc40d8a1@googlegroups.com> <26c6ed3a-f433-4d15-b979-095d9c1b7907@googlegroups.com> |
| Date | 2018-10-15 16:06 +0200 |
| Message-ID | <XnsA97CA3E07FF90eejj99@194.109.6.166> (permalink) |
Dr J R Stockton <J.R.Stockton@physics.org> wrote on 15 Oct 2018 in comp.lang.javascript: >> Because using a timeout is not directly related to the loading of the >> image. You don't know how long to wait and have reduced your reasoning >> to probability where it isn't necessary. > > We have a misunderstanding. The test image is small and on the > local hard drive, so should load without perceptible delay. When, > in Win7, I first considered the need for a delay-until-loaded, I > put in a simple alert() . Not a good final solution, but > tolerable (I did not need to wait before dismissing the alert) > and proving that a moderately generous delay should work > adequately in Win7. I then constructed a Timeout of maybe 3 > seconds, which worked in Win7. But what is wrong with 'image.onload'? It should take care of any timing problem? Or, you could build the onload yourself, as, [if my stipulation that the measured width is either 0 or the true value is correct,] you could build a a module testing for this zero and repeating that after a small timeout till the value is nolonger zero. > But, to my surprise, it did > not work in Win10, even after a significant increase - _it is > that _difference_ between Win7 & Win10 that I was wondering about_. WeLl, you would have to specify the engine you are talking about, so the browesr type and version. And perhaps the O.S. core functions could be different. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-13 14:29 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-13 20:40 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-14 11:11 +0200
Re: Image load problem: OK in my Win 7, not in either Win10 John G Harris <niam@jghnorth.org.uk.invalid> - 2018-10-14 11:18 +0100
Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-14 22:06 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-14 06:01 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-14 15:29 +0200
Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-14 21:42 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-15 05:02 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-10-15 16:06 +0200
Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-15 15:43 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2018-10-16 02:55 -0700
Re: Image load problem: OK in my Win 7, not in either Win10 Dr J R Stockton <J.R.Stockton@physics.org> - 2018-10-16 05:00 -0700
csiph-web