Page 1 of 1
I think I've run out of things to put on my site.......
Posted: Fri 19 Sep 2014 4:22 am
by ace2
Yep, I think that's it...
**hears a sigh of relief from some members**

Re: I think I've run out of things to put on my site.......
Posted: Fri 19 Sep 2014 9:47 am
by JennyLeez
Would you like some ideas. I would hate for you to be bored

Re: I think I've run out of things to put on my site.......
Posted: Fri 19 Sep 2014 9:59 am
by ace2
Better not as I think my wife will kill you!!!!
Anyone know of an easy way to write the containces of a text file into a table..
**I'm hiding this page from my wife at the moment*

Re: I think I've run out of things to put on my site.......
Posted: Fri 19 Sep 2014 4:02 pm
by laulau
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 2:24 am
by ace2
You mean like that
http://www.users.on.net/~ace2/noaa_reports.htm
Still have to do a lot of work on them making them fully HTML5...
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 4:10 am
by ace2
ace2 wrote:Still have to do a lot of work on them making them fully HTML5...
Well that's all done, wasn't as bad as i thought!!!
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 10:18 am
by beteljuice
You've corrected your missing bits and misplaced nav table which caused a lot of errors
... but there are still a couple of js errors in it (the NOAA page).
line 16 (JS) reportDir = "NOAA-reports"
; // The relative path to your ....
line 20 (JS) change_state = "Location:"
; // option to change the phrase ....
line 44 (typo) Stlye = Style
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 11:25 am
by ace2
beteljuice wrote:You've corrected your missing bits and misplaced nav table which caused a lot of errors
... but there are still a couple of js errors in it (the NOAA page).
line 16 (JS) reportDir = "NOAA-reports"
; // The relative path to your ....
line 20 (JS) change_state = "Location:"
; // option to change the phrase ....
line 44 (typo) Stlye = Style
Bugga, must of copied over them as I had all that setup in the original one!!!!
I should add, I did all that 15 mins before going to work!!!
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 3:21 pm
by ace2
beteljuice wrote:line 16 (JS) reportDir = "NOAA-reports"; // The relative path to your ..
That line is correct....
On another note, how can I centre Name, City, State & Elevation in NOAA reports,???
Re: I think I've run out of things to put on my site.......
Posted: Sat 20 Sep 2014 6:20 pm
by beteljuice
You can't - remember you were asking about dumping the contents of a text file ?
In the case of the NOAA reports the block of text is 'presented' as is - no formating.
You could of course write your own code, because you know the layout of those particular files.
You would need to parse the text file looking for the 'break' points and / or lines.
This would I suspect be easier in php than js, which is the route you seem to have chosen to go

Re: I think I've run out of things to put on my site.......
Posted: Sun 21 Sep 2014 1:05 am
by ace2
Roger, I took the js path due to my ISP not allowing php.
I did end up using the contents of a txt file and on another page using document write, but that was a single line into a table page.
Re: I think I've run out of things to put on my site.......
Posted: Sun 21 Sep 2014 5:39 am
by ace2
I did like that
page updated (with current date) on the NOAA page instead of using the static year as i did on my other pages..
So i created my own
Code: Select all
<script type="text/javascript">
var now = new Date();
var Month = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
</script>
Code: Select all
Page updated <script type="text/javascript"> document.write(Month[now.getMonth()]+" "+now.getDate()+" "+now.getFullYear()); </script><br />
Maybe someone else might be able to use this....