error in javascript

Results 1 to 3 of 3

Thread: error in javascript

  1. #1
    Join Date
    Dec 1969

    Default error in javascript

    why i get an error with this code<BR>&#060;SCRIPT&#062;<BR>var a= new Date();<BR>document.MyForm.datePaiement.value=Day( a)//& "/" & month() & "/" & year();<BR>&#060;/SCRIPT&#062;<BR>object expected

  2. #2
    Dan Evans Guest

    Default RE: error in javascript

    It looks like you&#039re mixing VBScript and JavaScript together.<BR><BR>var a = new Date(); is javascript<BR>Day(a) is VBScript. Of course you could have written a function called Day() yourself so I may be wrong.<BR><BR>On the otherhand, if your variables are in English then you could have a typo in ...datePaiement...<BR><BR>-Dan Evans<BR>

  3. #3
    Dan Evans Guest

    Default Whoops, didn't see the double post. Ignore th

    No text

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts