Welcome Guest Search | Active Topics | Sign In | Register

DatePicker in java procedure Options
PhilippeFra
Posted: Sunday, January 2, 2011 10:56:56 AM
Rank: Newbie
Groups: Member

Joined: 12/16/2010
Posts: 3
In a java procedure I put a value in textbox by this statement :
var javanom = document.getElementById('<%=textBoxName.ClientID %>')
javanom.value = "Patient Name";

Is it possible to do the same with a datePickerControl
ex :

var javadate = document.getElementById('<%=datePickerBirthdate.ClientID %>')
javadate.? = "13/06/1957" ;
eo_support
Posted: Monday, January 3, 2011 10:44:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Yes. You can do that. However you will need to use our client side JavaScript API to do because our client side objects are not simple DOM objects. It will be something like this:

eo_GetObject('<%=datePickerBirthdate.ClientID %>').setSelectedDate(new Date(1957, 5, 13));

You can find more information on how to use our client side API here:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

Thanks!

PhilippeFra
Posted: Tuesday, January 4, 2011 4:54:44 AM
Rank: Newbie
Groups: Member

Joined: 12/16/2010
Posts: 3
It's Ok. Many 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.