Hi folks, i done a search but i cant find what im looking for
The WD graphs such as 20071103.gif and so on, is there a script
or a calendar that could pull these on to a page please? I am total
script illiterate to indepth help might be needed :oops:
Bashy - i asked the same question here a while ago and got several different answers - i will have to find my post as i never followed through with it - had other more major issues with my Wx PC and WD, rain gauge, FARS fan, Soccer club summer Soccer organiser (34 teams) etc… Not sure even which thread/board i posted it in…
<table width="99%">
<tr>
<td>
<script type="text/javascript" src="kalender/calendar.js"></script>
<script type="text/javascript" src="kalender/calendar-da.js"></script>
<script type="text/javascript" src="kalender/calendar-setup.js"></script>
<div style="float: left"
id="calendar-container">
<script type="text/javascript">
function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year. In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:
if (calendar.dateClicked) {
// OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth()+1; // integer, 0..11
m = (m < 10) ? "0"+m.toString() : m.toString();
var d = calendar.date.getDate(); // integer, 1..31
d = (d < 10) ? "0"+d.toString() : d.toString();
// redirect...
window.location = "/vejret/vejrdata/" + y + m + d + ".gif";
}
};
Calendar.setup(
{
flat : "calendar-container", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);
</script>
</div>
</td>
</tr>
</table>
About presenting the graphs next to the calendar - its a great idea and I think its possible - but im not sure how to do that.
I will try and find out how to present the graphs next to the calendar. I have asked another member here in the forum - lets see it there shows something up.
Could you not use an embeded layer? So when the user clicks the various buttons it presents the hidden layer with the graphic? I have used this in javascript before but as with php im not too sure how you would code it.
Working on some code, i have the image being inserted into the same page rather than going direct to it that works fine but its trying to getit to insert in a different part of the page. This bit of javascript is evading me at the moment.
Well i have spent all afternoon trying to insert the result into the page, but because of the way the calendar works im finding it very difficult to get any code working. #-o
well i certainly had a good go at it as i would have put it on my site too, maybe i was missing something but i tried from every angle to perform an insert and it just wasnt having it,well it did insert it into the page but overwrite everything.