This is a migrated thread and some comments may be shown as answers.

Microsoft JScript Error " get_selectedDate" with IE

1 Answer 55 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Adigard
Top achievements
Rank 1
Adigard asked on 26 Jan 2012, 09:29 AM
Greetings,

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

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 27 Jan 2012, 05:44 PM
Adigard:

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!
Tags
Calendar
Asked by
Adigard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or