"Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
news:Xns967893EE6578Aeejj99@194.109.133.242...
> ark312 wrote on 17 jun 2005 in comp.lang.javascript:
>
>> I'm using a java-script in a HTML-page. Part of the script is the
>> line:
>>
>> var limit = 1136 - 1101;
>>
>> The value 1136 is a counter and changes permanantly. In VB I can write
>> a routine which prints the actual value to a fule called COUNTER.TXT.
>>
>> Can I change my JavaScript in such a way that it reads the value of
>> the file COUNTER.TXT?
>>
>
> Dat hangt er van af war die file staat.
> Staat die op je server,
> dan kan je hem [IE only] lezen met:
>
> function getUrl(url) {
> var http = new ActiveXObject("microsoft.xmlhttp");
> http.open("GET",url,false);
> http.send();
> return http.responseText;
> }
>
>
> document.write(getUrl('http://www.mijn.nl/COUNTER.TXT') - 1101)
>
>
>
> --
> Evertjan.
> The Netherlands.
> (Replace all crosses with dots in my emailaddress)
>
Het is lokaal. Bedankt.
Received on Mon Oct 24 02:12:54 2005