Welcome Guest Search | Active Topics | Sign In | Register

How to access DatePicker with JavaScript? Options
Dexter
Posted: Tuesday, August 19, 2008 1:26:07 AM
Rank: Newbie
Groups: Member

Joined: 7/29/2008
Posts: 9
Is there a way to access web based DatePicker at runtime using JavaScript code? Please, provide simple example, with ability to change the selected date using JS function.

Thank you
eo_support
Posted: Tuesday, August 19, 2008 5:14:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Dexter
Posted: Tuesday, August 19, 2008 10:44:05 PM
Rank: Newbie
Groups: Member

Joined: 7/29/2008
Posts: 9
Ok, I had a VERY simple question, right? You keep answering like you just want to write somethnig, but is this useful, hm?!

From this link I understand that I have to use global function eo_GetObject(id). So, its fine, this function returns an Object.

I'm asking again - am I able to change the date in the DatePicker control using JS function?

While I can retrieve the Object using your function, I don't see any property that I can use - there is no "value", or "date", or "text"....there's just properties like aaab,aaac,aazs,aadw etc. etc. which doesn't help.

This link does not answer my question!

While you keep answering such way, we are considering not to buy your controls - practically there is no support at all for these things. Sorry, but I'm very annoyed of you :(
eo_support
Posted: Tuesday, August 19, 2008 11:37:49 PM
Rank: Administration
Groups: Administration

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

Sorry that our previous reply did not include all the details. eo_GetObject returns a client side Calendar object:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Calendar.html

With that object you will be able to set the current date. For example:

Code: JavaScript
eo_GetObject("DatePicker1").setSelectedDate(new Date(2008, 1, 2));


There are also many other methods available for the Calendar object as listed on the above reference page. If you ever look for something else, that page should tell you whether something exists or not.

The reason that we direct you to the help link is that we believe that's where you will find the most accurate and complete information. Our goal is to help you to get the most out of our controls, so we do think that serves that goal. However if you prefer us to only give you exactly what you asked for, that is also fine with us --- just let us know like you did and we will try our best to accommodate. In the long run we do hope you find the help file useful because what we give you at here are pretty much just pieces that are already there.

Hope this helps. Please feel free to let us know if you still have any more questions.

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.