Rank: Newbie Groups: Member
Joined: 9/9/2010 Posts: 5
|
Hello,
Just a quick question about using the DatePicker Object.
On a web page, we are reading the date value of a datepicker object using javascript and the innerText function, example :
var dte=document.getElementById('DatePickerRes');
var date='</strong><br />Visiting on <strong>'+dte.innerText+'</strong>';
This works fine on browsers running on a PC (tested with IE, Firefox, Opera).
However on a browser running on an Apple Mac (Safari) this returns as 'Undefined'.
Is there another way of reading the DatePicker date value that we could use?
Thanks for your help
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You will need to use our client side JS API to get/set the date picker value: http://doc.essentialobjects.com/library/1/clientapi_howto.aspxThe DatePicker is not a single DHTML element, so you can not use getElementById to get an the DHTML element and modify it directly. Thanks!
|