Date() didn't support mozill fireform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivasusan
    New Member
    • Oct 2008
    • 67

    #1

    Date() didn't support mozill fireform

    Hi!

    pls clear my doubt…..

    some more javascript and vbscript function didn’t support in mozilla firefox. How i can solve that problem?

    for example:

    Date(); — [ var FDate = new Date(document.g etElementById(' txt_F' + i).value);] didn’t support in firefox.

    window.close(); — [Close] didn’t support in firefox.
    .
    .
    .. etc..

    how i can solve this problem?

    Thanks & Regards,
    siva.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    both Javascript functions are supported by Mozilla. VBScript is exectuted on the server and doesn't reach the browser.

    you could have javascript turned off or a syntax error (check in the error console), but I have insufficient info to tell for sure.

    Comment

    • shivasusan
      New Member
      • Oct 2008
      • 67

      #3
      Hi!

      Pls check my coding... because it isn't working in mozilla firefox... pls give some idea to solve this problem... & help me

      Code:
          for (i=1; i<=lastRow; i++) {
            var aRow = document.getElementById('txt_C' + i);
            var FDate = new Date(document.getElementById('txt_F' + i).value);
            var TDate = new Date(document.getElementById('txt_T' + i).value);
            var country = document.getElementById('txt_C' + i).value; 
      	country = country.toUpperCase();
      	
            if (aRow.value.length <= 0) {
              alert('The country ' + i + ' is empty');
              return;
            }
      	  
            [B]if (FDate>TDate) {// is not working in mozilla firefox
              alert("You have entered the date incorrectly on Row '" + i +"', please make the necessary amendments.");
              return;[/B]    }
      }

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        hard to tell without the according HTML. in the first place I'd suspect wrong input type in the function calls.....

        if you have a link to the site, it would be helpful.

        regards

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Yes, the corresponding HTML with example input would help. Do you get any errors?

          Comment

          • shivasusan
            New Member
            • Oct 2008
            • 67

            #6
            Hi!

            Thanks for yr reply.
            No, i didn't got any error.
            Please check this link : http://www.rjc.edu.sg/travel/index.asp --- username: s1
            pls help me i want to solve this problem... within two days.

            Thanks & regards,
            Susan

            Comment

            • Dormilich
              Recognized Expert Expert
              • Aug 2008
              • 8694

              #7
              FireBug shows that your Date objects are invalid. imo, this is due to invalid input. it seems that mm-dd-yyyy is not recognised by Date as valid input.

              see Date – MDC

              Comment

              Working...