Welcome Guest Search | Active Topics | Sign In | Register

EO DatePicker Apple Mac Browser Question Options
gammadata
Posted: Wednesday, November 16, 2011 11:51:22 AM
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

eo_support
Posted: Wednesday, November 16, 2011 1:12:57 PM
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.aspx

The DatePicker is not a single DHTML element, so you can not use getElementById to get an the DHTML element and modify it directly.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.