|
|||||||
Day of Month Calculator (for sessions) |
Share Thread
|
Subject: Day of Month Calculator (for sessions) From: Mr Red Date: 15 Mar 04 - 10:34 AM I have just uploaded a page on my website with a Javascript calculator to list which Sat, Sun etc it is of the month and for 28 days in the future. http://www.users.waitrose.com/~cresby/dom.htm I am looking for feeback on the algorithm - does it work in all browsers? The book Pure Javascript (a veritable Bible) tells me each instruction should work from Netscape3 and IE4 onwards (Opera not specified). Anyone care to comment. Oh - I am the programmer and it is learning curve all over again. I am not too fussed about aethestics, we are at the HTML3.0 level and piecing it together with Java so I ain't altering the look just yet. I have tried to incorporate a back button so others can return properly but it don't werk on PC's - I have found other instructions that need a live URL to work so that needs testing someday. That function defaults to my site if it is wrong, if it werks it will return you to this page (the document.referrer instruction for the Max's of this world). calculator seems Ok but Back doesn't work An error occurred while evaluating the expression: FindNoCase("<", FORM.UserName) Error near line 23, column 6. Any Ideas anyone If the PC clock is wrong it will not be accurate. |
Subject: RE: Day of Month Calculator (for sessions) From: Mr Red Date: 15 Mar 04 - 10:43 AM False alarm - it had something to do with the thread creation and preview. BACK works from here (who's a clever boy then?) |
Subject: RE: Day of Month Calculator (for sessions) From: Rasener Date: 15 Mar 04 - 10:54 AM You are he he :-) |
Subject: RE: Day of Month Calculator (for sessions) From: McGrath of Harlow Date: 15 Mar 04 - 11:34 AM Click on the time in the lower corner of the screeen, and up comes an adjustable calendar anyway, and you can find out this kind of thing for any date from 1980 to 2099, which should be good enough for most practical purposes. |
Subject: RE: Day of Month Calculator (for sessions) From: Geoff the Duck Date: 15 Mar 04 - 02:45 PM Can you do one to tell Bush what century he lives in? He seems to think he's in a pre-christian era! Quack! |
Subject: RE: Day of Month Calculator (for sessions) From: Mr Red Date: 15 Mar 04 - 05:03 PM McGrath of Harlow You are assuming that people think the same way as you aren't you? Obvious has to be obvious and some of us (me if you wanna know) don't have the clock down there because we do video on a slow PC and it steals valuable time (and video frames). Library PC's can be set-up that way too. The whole purpose of PC's is to make life easier and sometimes that means mindspace. This is one more way, one click and no thinking. Different. Faster. Bush amy not make the century if he keeps nibbling pretzels. |
Subject: RE: Day of Month Calculator (for sessions) From: Amos Date: 15 Mar 04 - 05:24 PM It seems to work just fine on Safari under Mac OS X, Red. A |
Subject: RE: Day of Month Calculator (for sessions) From: Mr Red Date: 16 Mar 04 - 03:54 PM Ta Amos. I have prettified it a bit, 4 columns of 7 and colour change for the month but I can't see much mileage in tinkering any more. |
Subject: RE: Day of Month Calculator (for sessions) From: GUEST Date: 16 Mar 04 - 05:33 PM I have one of these already, portable, cellulose based storage medium with optical retrieval. Its called a diary. |
Subject: RE: Day of Month Calculator (for sessions) From: McGrath of Harlow Date: 16 Mar 04 - 07:27 PM That told me off! As you say, people think differently. It's just that for me using the clock seems a whole lot simpler - and the library computers round here are faster than the one I've got at home. Obviously, if it helps some people, that's a good thing. |
Subject: RE: Day of Month Calculator (for sessions) From: GUEST,Jon Date: 17 Mar 04 - 05:04 AM Well it works fine here (tried on Win 2K, IE6) but I would fall into the group more likely to use either the Win built in calender or even old fashioned paper ones than look up a web site for this purpose. It is interesting in the context of you maintaining an events listing though. I haven't a clue as I type here how this could work or look but a challenge would be to see if you could tie those calculations in with the listings, eg. to highlight something as "on tonight" or "on this week". Jon |
Subject: RE: Day of Month Calculator (for sessions) From: Geoff the Duck Date: 17 Mar 04 - 06:41 AM It doesn't display in Opera the same way it does in IE6. The first of each set of columns displaays differently. IE6 |
Subject: RE: Day of Month Calculator (for sessions) From: Geoff the Duck Date: 17 Mar 04 - 06:57 AM WHOOPS - didn't mean to post until I'd finished... In IE6 the first column of each group displays the shortened name for the day and date. IE6 - Wed Mar 17 - and this wraps to a second line. My version of Opera 7 displays the FULL name for the day i.e. Wednesday followed by a comma and space, then the numerals for the date. Anything longer than 10 characters then disappears, and doesn't wrap to another line, so "Wedneday, " fits in the box but doesn't have any numbers. "Monday, 29" just fits in a box but "Tuesday, 3" SHOULD read "Tuesday, 30". Apart from this, the rest of it seems to do what it is supposed to. Bug report complete... Quack! GtD. |
Subject: RE: Day of Month Calculator (for sessions) From: GUEST,Luddite Date: 17 Mar 04 - 08:07 AM I have a UNISON diary in my pocket - works fine for me. |
Subject: RE: Day of Month Calculator (for sessions) From: Mr Red Date: 18 Mar 04 - 05:58 PM Thanks folks. But there are many people who say "Oh I can never work these things out" and a diary (most I see) don't tell me anything about which number a (say) Tuesday is in the month - eg third or last. YOU can count but who surfs with a diary in there hand - apart from single digit typists. AND as I said not every one thinks to click the clock even though it is staring them in the face. Its a clock innit? not a diary. I always reckon that IQ is related to speed. posting here we think the problem through, looking for a session is not an IQ test - so we don't (statistical average "we") focus on the how. Cue a hyperlink that says "here, I dun the thunking for ya". GtD I will cogitate on your data. My added problem is that I do not want to use Java later than 1.1 (1.0 is the target) for backwards compatibility. |
Subject: RE: Day of Month Calculator (for sessions) From: Mr Red Date: 19 Mar 04 - 08:00 PM GtD I have thunk, and probably got round that bug. IE6 users will not see any difference. |
Subject: RE: Day of Month Calculator (for sessions) From: Geoff the Duck Date: 22 Mar 04 - 08:47 AM Hi there Baffled of Stroud - couldn't access mudcat to get your address for e-mails last night, but you seem to have cracked the display problem on Opera. Dates read now as e.g. "Thu Mar 25" etc. It wraps happily onto the next line without problems. Hope that helps you. Quack! Geoff. |
Subject: RE: Day of Month Calculator (for sessions) From: McGrath of Harlow Date: 22 Mar 04 - 04:21 PM The real bugger is, when you know something things happens on a two week basis, but you haven't been for some time. (For example, the folk night in the bar on alternate Sundays at the Half Moon in Stortford.) |
Subject: RE: Day of Month Calculator (for sessions) From: GUEST Date: 22 Mar 04 - 05:10 PM You mean the alternating ones MG, like every other Wednesday rather than perhaps 1st and 3rd Wednesday in the month... I had an answer that at least worked for me and one club for a while - Giro was paid every other week so pay day week was event week (or perhaps the opposite). |
Share Thread: |
Subject: | Help |
From: | |
Preview Automatic Linebreaks Make a link ("blue clicky") |