I wish to create tide tables on a web page from data on a text file update to server, it needs to be collected line by line and put into separate cells on the table. The text file will only be updated once per day.
I have found a PHP script that will do it but my server does not support PHP.
Will JavaScript be capable of doing it or will I need to use Ajax?
Thanks
Wayne
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Javasript or Ajax
Moderator: daj
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Javasript or Ajax
AJAX is JavaScript with limited file 'interrogation' capability.
How is the tide text data being generated ?
Could the same prog not generate a htm or Cumulus Template ?
If not, then yes, AJAX would be the way to call and parse the text file, and to selectively populate your table.
Thought, you say "to server", for AJAX to work it must be on YOUR server
How is the tide text data being generated ?
Could the same prog not generate a htm or Cumulus Template ?
If not, then yes, AJAX would be the way to call and parse the text file, and to selectively populate your table.
Thought, you say "to server", for AJAX to work it must be on YOUR server
......................Imagine, what you will KNOW tomorrow !
Re: Javasript or Ajax
Asynchronous Javascript And XML - not really a language; just a technique.beteljuice wrote:AJAX is JavaScript with limited file 'interrogation' capability.
Client side Javascript driven by data held on the server. No need for PHP on the server. Beware of (significant) differences in the way different browsers interpret the script...
See http://w3schools.com/. This is an excellent web based resource.