Re: How to populate HTML table from local text file.
From: alex (alexanderelzinga_at_hotmail.com)
Date: 03/29/05
- Next message: Max010: "Re: java.lang.NullPointerException"
- Previous message: KiLVaiDeN: "Re: Java Security"
- In reply to: Mick White: "Re: How to populate HTML table from local text file."
- Next in thread: Jeff North: "Re: How to populate HTML table from local text file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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);
> }
[...]
- Next message: Max010: "Re: java.lang.NullPointerException"
- Previous message: KiLVaiDeN: "Re: Java Security"
- In reply to: Mick White: "Re: How to populate HTML table from local text file."
- Next in thread: Jeff North: "Re: How to populate HTML table from local text file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|