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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
|
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 :(
|
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.htmlWith 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
|