Microsoft JScript Error " get_selectedDate" with IE

2 posts, 0 answers
  1. Adigard
    Adigard avatar
    61 posts
    Member since:
    Oct 2011

    Posted 26 Jan 2012 Link to this post


    I'm facing a problem when i'm lauching my project locally with IE.

    Erreur d'exécution Microsoft JScript: Impossible d’obtenir la valeur de la propriété  « get_selectedDate » : objet null ou non défini
    Which basically means : Error of execution Microsoft JS : unable to get the property : « get_selectedDate » : object null or undefined

    ( i already verified my RadDateTimepickers had a date selected when i get this error )

    The weird thing is i get this only using IE.

    var pickerDebut = $find("<%= StartDate.ClientID %>");
    var dateDebut = pickerDebut.get_selectedDate().format("dd/MM/yyyy");
    var pickerFin = $find("<%= EndDate.ClientID %>");
    var dateFin = pickerFin.get_selectedDate().format("dd/MM/yyyy");

    Thanks in advance for your help

  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 27 Jan 2012 Link to this post


    I would suggest that, if you have not already done so, you should wrap your Javascript code in a RadCodeBlock. It may help to overcome the Browser's interpretation issues.

    Hope this helps!
Back to Top