[Gllug] javascript question
Adrian McMenamin
adrian at mcmen.demon.co.uk
Thu Apr 18 18:51:03 UTC 2002
On Thursday 18 Apr 2002 7:26 am, you wrote:
> Hi Adrian,
> Re:-
> Why does Mozilla trap expired credit cards - but Konqueror (and the Evil
> Empire's browser) do not?
>
> if (parseInt(document.ticket_order.card_year.value, 10) == 2){
> var right_now = new Date;
> if (right_now.getMonth() >=
> parseInt(document.ticket_order.card_month.value, 10)){
> alert("Sorry, your credit card appears to have expired.
> Please check
> the expiry date.");
> return false;
> }
> }
> }
>
>
>
>
> This may be something to do with the way different browsers have different
> start dates. The following script shows how to display the current time on
> a web-page. (Only tested for Netscape and Internet Explorer). Notice
> Netscape requires year+1900, whereas Internet Explorer doesn't..
>
> Regards from Mark Preston
Thanks for the answer, but that cannot be it - as there is no year checking
code here.
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list