/    Sign up×
Community /Pin to ProfileBookmark

Get text from textfile

Hi,

I explain the situation in short.
I’m WebAdmin of our Teams webpage, where they can find all the procedures, tools, files, news, timesheets, plannings, etc available.
The wabpage uses frame: one top frame with the logo of our company and the (javascript) menu. the lower frame displaying the actual pages.

What i would like to do is display general problems actively in the top frame. I would like to have a javascript that takes his text from a text file, and displays this on my page. The Top frame doesn’t refresh, so the script has to update it’s contents regulary.

Is this possible on javascript ? Pls note that my page isn’t published on a webserver, it is simply on a shared network drive of my team?

Cheers,

SP

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@TheBearMayMar 17.2004 — You could try something like:

[code=php]
<script...>
function rFresh(){
document.getElementById("iFramed").src="test.txt";
setTimeout("rFresh()",10000);
}

rFresh();
</script>
...
<iframe id="iFramed" src="test.txt"></iframe>
...
[/code]


Assuming that "test.txt" is the file that will be updated....
×

Success!

Help @SPTRI spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...