Re: JSON without AJAX



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
.



Relevant Pages

  • Re: Assembly Version
    ... >been started yet without loading it because if I load it, ... Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: JSON without AJAX
    ... Randy Webb napisal: ... > As is loading them ... Internet is unreliable. ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: Find text in files
    ... get how to load a existing document into it. ... loading a specific document into an object? ... Regards Magnus ... Prev by Date: ...
    (microsoft.public.dotnet.framework)
  • Slow loading web pages...........?
    ... web page and after loading th first "Start" page and moving to another web ... it takes another 4 or 5 minutes to load that page. ... Prev by Date: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Java Newbie... Read file at HTTP
    ... I need the code for "loading" a picture over www (ex. ... I need only to load it, ... Prev by Date: ...
    (comp.lang.java.programmer)