🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #51306

wczytać plik po wczytaniu strony

#51306
From: zlotowinfo
Date: Fri, 14 Jun 2013 17:40
34 lines
1523 bytes
chodzi o załadowanie danych z pliku po wczytaniu strony
dane te są ciągle zmieniane, nazwa niezmienna

po kliknięciu przycisku:
Wiersz: 1
Błąd: Nie można uzyskać właściwości "pole1": obiekt jest pusty lub 
niezdefiniowany


*******1.htm
<script src=1.js></script>

<form name=myform>
pole1: <input name=pole1><br>
pole2: <input name=pole2>
<input type=button onClick="load()">
</form>
<script>
document.myform.pole1.value='111';
</script>


*******1.js
function load()
{
  document.write('<script src="2.js"></script>')
}

******2.js
document.myform.pole1.value='123';

-- 
http://zlotowskie.blox.pl
http://moneysave.info 
Technical Details
Message-ID: <kpfkib$1d2$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: "zlotowinfo" <dupa@dupa.xx>
Newsgroups: pl.comp.lang.javascript
Subject: wczytać plik po wczytaniu strony
Date: Fri, 14 Jun 2013 19:40:30 +0200
Organization: ATMAN - ATM S.A.
Lines: 35
Message-ID: <kpfkib$1d2$1@node2.news.atman.pl>
NNTP-Posting-Host: 77-45-36-78.sta.asta-net.com.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1371231627 1442 77.45.36.78 (14 Jun 2013 17:40:27 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 14 Jun 2013 17:40:27 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit