![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
document.getElementById("preloader").src = "./dynMarker.aspx?..."; document.getElementById("preloader").onload = createMarker(); |
#3
| |||
| |||
|
|
Berend wrote: document.getElementById("preloader").src = "./dynMarker.aspx?..."; document.getElementById("preloader").onload = createMarker(); Set onload first, then set src, and you need to set onload to a function that calls createMarker e.g. document.getElementById("preloader").onload = function () { createMarker(); }; document.getElementById("preloader").src = "./dynMarker.aspx?..."; Note that you can simply create an Image object in memory with var img = new Image(); img.onload = function () { createMarker(); }; img.src = './dynMarker.aspx?...'; there is no need to put an img element into the document and hide it to preload images. |
, adding function() {
#4
| |||
| |||
|
|
Note that you can simply create an Image object in memory with var img = new Image(); img.onload = function () { createMarker(); }; img.src = './dynMarker.aspx?...'; there is no need to put an img element into the document and hide it to preload images. |
#5
| |||
| |||
|
|
Martin Honnen wrote: Note that you can simply create an Image object in memory with var img = new Image(); img.onload = function () { createMarker(); }; img.src = './dynMarker.aspx?...'; there is no need to put an img element into the document and hide it to preload images. And in the worst case, with "preloading" the download of the image data will be done twice. Great. |
#6
| |||
| |||
|
|
Thomas 'PointedEars' Lahn said the following on 12/12/2007 6:11 PM: Martin Honnen wrote: Note that you can simply create an Image object in memory with var img = new Image(); img.onload = function () { createMarker(); }; img.src = './dynMarker.aspx?...'; there is no need to put an img element into the document and hide it to preload images. And in the worst case, with "preloading" the download of the image data will be done twice. Great. Almost as nice as having to snip part of an improperly delimited signature. |
|
But, are you sure it will download the "image data" twice? |
#7
| |||
| |||
|
|
Randy Webb wrote: Thomas 'PointedEars' Lahn said the following on 12/12/2007 6:11 PM: Martin Honnen wrote: Note that you can simply create an Image object in memory with var img = new Image(); img.onload = function () { createMarker(); }; img.src = './dynMarker.aspx?...'; there is no need to put an img element into the document and hide it to preload images. And in the worst case, with "preloading" the download of the image data will be done twice. Great. Almost as nice as having to snip part of an improperly delimited signature. My signature is properly delimited, and its content is not subject to any standards. Deal with it. |
|
But, are you sure it will download the "image data" twice? I was talking about the _worst case_, was I not? |
#8
| |||
| |||
|
|
Randy Webb wrote: Almost as nice as having to snip part of an improperly delimited signature. My signature is properly delimited, and its content is not subject to any standards. Deal with it. |
#9
| |||
| |||
|
|
In comp.lang.javascript message <4761869C.3010601 (AT) PointedEars (DOT) de>, Thu, 13 Dec 2007 20:23:08, Thomas 'PointedEars' Lahn <PointedEars (AT) web (DOT) de posted: Randy Webb wrote: Almost as nice as having to snip part of an improperly delimited signature. My signature is properly delimited, and its content is not subject to any standards. Deal with it. Your signature does not conform with the elementary but well-considered FYI28/RFC1855. |
#10
| |||
| |||
|
|
Dr J R Stockton wrote: In comp.lang.javascript message <4761869C.3010601 (AT) PointedEars (DOT) de>, Thu, 13 Dec 2007 20:23:08, Thomas 'PointedEars' Lahn <PointedEars (AT) web (DOT) de posted: Randy Webb wrote: Almost as nice as having to snip part of an improperly delimited signature. My signature is properly delimited, and its content is not subject to any standards. Deal with it. Your signature does not conform with the elementary but well-considered FYI28/RFC1855. First, that is _not_ a standard. Second, yes, it does conform. It consists of a signature delimiter "-- " that is followed by at most four lines of content. Anything else is beyond that *recommendation*. |
|
Incidentally, that recommendation includes "A good rule of thumb: Be conservative in what you send and liberal in what you receive." |
|
You two should give the second part more thought. Maybe you even start wondering why nobody else in whole wide Usenet has anything to say against my signature, neither in public nor in private, and why you two are the people who contribute the least amount of *substantial* responses, but the most amount of noise to this newsgroup. But I would not expect you to do that. |
![]() |
| Thread Tools | |
| Display Modes | |
| |