Re: JSON without AJAX
- From: Jasen Betts <jasen@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 08:38:50 -0000
On 2005-12-22, VK <schools_ring@xxxxxxxxx> wrote:
>
> Randy Webb wrote:
>> Thomas 'PointedEars' Lahn said the following on 12/22/2005 2:32 PM:
>>
>>
>> >That said, "loading scripts" after the document was loaded is still unreliable.
>>
>> No more unreliable than trying to load them when the page is loading.
>>
>
> if (scriptObject.readyState == 'complete')
> in IE works just fine and reliable - at least seems so, I did not check
> it under all circumstances.
>
> It is a shame that others did not implement anything so convenient and
> obvious - except for XMLHttpRequest - they must be thinking that after
> such glorious achievement they can take a rest for another year or two.
>:-)
onload works here. (Mozilla 1.7.8)
function ha(){alert("ha!");};
function pastejs(){
s = document.createElement("script");
s.onload=ha;
s.type = "text/javascript";
s.src = "test.js";
document.body.appendChild(s);
}
Bye.
Jasen
.
- References:
- Re: JSON without AJAX
- From: VK
- Re: JSON without AJAX
- From: bwucke@xxxxxxxxx
- Re: JSON without AJAX
- From: VK
- Re: JSON without AJAX
- From: VK
- Re: JSON without AJAX
- From: bwucke@xxxxxxxxx
- Re: JSON without AJAX
- From: Thomas 'PointedEars' Lahn
- Re: JSON without AJAX
- From: VK
- Re: JSON without AJAX
- From: Thomas 'PointedEars' Lahn
- Re: JSON without AJAX
- From: Randy Webb
- Re: JSON without AJAX
- From: VK
- Re: JSON without AJAX
- Prev by Date: Re: Named element access by ID
- Next by Date: Re: How to compare 2 elements with same getElementById(x)?
- Previous by thread: Re: JSON without AJAX
- Next by thread: Re: JSON without AJAX
- Index(es):
Relevant Pages
|