Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. java script problem

java script problem

Scheduled Pinned Locked Moved ASP.NET
helpquestionjavatools
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajkumar 3
    wrote on last edited by
    #1

    Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....

    A C 2 Replies Last reply
    0
    • R rajkumar 3

      Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      i donr even know what is NaN NaN stands for not a number. You need to see whether the name you are passing is correct.

      Ahsan Ullah Senior Software Engineer

      R 1 Reply Last reply
      0
      • A AhsanS

        i donr even know what is NaN NaN stands for not a number. You need to see whether the name you are passing is correct.

        Ahsan Ullah Senior Software Engineer

        R Offline
        R Offline
        rajkumar 3
        wrote on last edited by
        #3

        i am able to get date in the field while debugging but when assigning it to variable it giving value NaN.

        1 Reply Last reply
        0
        • R rajkumar 3

          Var startdate=new Date(getElem("ctl00_ContentPlaceHolder1_txtEndTime").value); i am capturing date from field in to stratdate variable but when i am debugging the value NaN is storing in startdate variable ! i donr even know what is NaN .. why it is not storing date ?? can any one help me in this ....

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          it means you tried to divide by zero, or otherwise created an invalid value.

          rajkumar.3 wrote:

          i donr even know what is NaN

          I guess you need to buy a javascript book then

          Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups