C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Dynamic C1WebDateEdit with javascript

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 11
akdeniz Posted: Fri, Jan 9 2009 10:34 AM
Hi, For runtime created date edit controls, when I can get the control from javascript, I can't use set_Date and get_Date methods. I use; var date = document.getElementByID("ID"); to get the control. But according to this: "Note the use of the embedded expression syntax and the ClientObjectID property to reference the appropriate runtime object for each control: " How can I use this expression with dynamic controls or what should I use to get controls?
Top 10 Contributor
Posts 1,090
C1_JohnAd replied on Tue, Jan 27 2009 9:28 AM
Hi,
 
You can access the control once it completely rendered on the page.
 
You may try the following suggetions.
1. Access the value (s) using the request object.
2. If you need viewstate then query or modify the viewstate directly.
 
Hope this helps.
 
Regards,
John Adams
<akdeniz> wrote in message news:213190@10.0.1.98...
Hi, For runtime created date edit controls, when I can get the control from javascript, I can't use set_Date and get_Date methods. I use; var date = document.getElementByID("ID"); to get the control. But according to this: "Note the use of the embedded expression syntax and the ClientObjectID property to reference the appropriate runtime object for each control: " How can I use this expression with dynamic controls or what should I use to get controls?

http://helpcentral.componentone.com/cs/forums/p/77826/213190.aspx#213190

Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.