Re: How to populate HTML table from local text file.

From: alex (alexanderelzinga_at_hotmail.com)
Date: 03/29/05


Date: 29 Mar 2005 01:10:31 -0800

Mick White <mwhite13BOGUS@rochester.rr.com> wrote in message news:<b%z1e.105483$vK5.22755@twister.nyroc.rr.com>...
> alex wrote:
>
> > Hi,
> >
> > I am looking for a way to populate an HTML table from an external
> > local text file which looks like this:
> >
> > DATE/TIME LAT. LON. DEPTH. ML.
> > -------------------- ---------- ---------- ------- -------
> > 21/03/2005-04:06:03 XX,XX XX,XX 171 3,42
> > 21/03/2005-12:23:53 XX,XX XX,XX 500 5,4
> > 21/03/2005-12:43:10 XX,XX XX,XX 553 5,38
> > 21/03/2005-18:47:51 XX,XX XX,XX 162 3,91
> > 21/03/2005-19:29:49 XX,XX XX,XX 500 3,51
> > 21/03/2005-20:04:51 XX,XX X,X 75 3,72
> >
> > The file could have more rows (DATA) that I show here. The file is
> > provided to me on a daily basis and I have to update a web page daily
> > with the contents of the file.
> >
> > I considered using JavaScript embedded in the HTML page but I am a
> > newbie on what scripting for the web it refers.
> >
> <div id="foo"><--INCLUDE FILE HERE--></div>

Forgive my ignorance, but, how do i include the file as dictated right
above?
Is there some kind of HTML statement that allows you to include an
external text file ? Please clarify as am a newbie on this. Thanks
Mick.

Alex.

> <script type="text/JavaScript">
> onload= function(){
> var d=document.getElementById("foo").innerHTML.split(/\s+/)
> document.getElementById("foo").innerHTML=table_maker(5,d);
> }
[...]



Relevant Pages

  • Re: How to populate HTML table from local text file.
    ... alex wrote: ... > I am looking for a way to populate an HTML table from an external ... > provided to me on a daily basis and I have to update a web page daily ...
    (comp.lang.java.help)
  • Re: How to populate HTML table from local text file.
    ... alex wrote: ... > I am looking for a way to populate an HTML table from an external ... > provided to me on a daily basis and I have to update a web page daily ...
    (comp.lang.php)
  • Re: Print Preview is unavailable when attempting to print a messag
    ... this option is unavailable with items formatted in html. ... "Alex Yu" wrote: ... > This posting represents my own opinion, ... > Please do not send e-mail directly to this alias. ...
    (microsoft.public.outlook.general)
  • Re: unreadable js code
    ... Vladdy wrote on 11 okt 2005 in comp.lang.javascript: ... > alex wrote: ... > One's desire to hide the source code is inversly proportional to its ... However that html could be read pasting and using the IE command line: ...
    (comp.lang.javascript)
  • Re: Why JavaEE / EJB3?
    ... Thanks Alex. ... into making it a full J2EE app. ... MVC, no need for multiple clients (swing vs. html vs. mini devices), no ...
    (comp.lang.java.programmer)