Hi,
I have a page on which i have an iframe. On page i have a button and on its click i call a javascript method which loads a another page in the iframe.
Say the page loaded in iframe is named "MyPage".
On the page load event of MyPage i register a javascript method named "DisableDatePicker" that disables DatePicker control on MyPage. But when i try to access the Rad DatePicker inside this method i get it as null.
I am using Prometheus 2008 controls.
i tried accessing DatePicker with following methods:
1. <%= datePicker1.ClientId %> (this used to work for arlear rad controls)
2. window['<%= datePicker1.ClientId %>']
3. $find('<%= datePicker1.ClientId %>')
but nothing seems to work.
however if i access it as: document.getElementById('<%= datePicker1.ClientId %>')
I get the object but that is does not possess the required properties and methods.
The same implementation used to work properly when we had old rad controls.
However if I access the controls after page load it works fine with new rad controls.
Please suggest me some solution.
Thanks,
Manoj Dwivedi
I have a page on which i have an iframe. On page i have a button and on its click i call a javascript method which loads a another page in the iframe.
Say the page loaded in iframe is named "MyPage".
On the page load event of MyPage i register a javascript method named "DisableDatePicker" that disables DatePicker control on MyPage. But when i try to access the Rad DatePicker inside this method i get it as null.
I am using Prometheus 2008 controls.
i tried accessing DatePicker with following methods:
1. <%= datePicker1.ClientId %> (this used to work for arlear rad controls)
2. window['<%= datePicker1.ClientId %>']
3. $find('<%= datePicker1.ClientId %>')
but nothing seems to work.
however if i access it as: document.getElementById('<%= datePicker1.ClientId %>')
I get the object but that is does not possess the required properties and methods.
The same implementation used to work properly when we had old rad controls.
However if I access the controls after page load it works fine with new rad controls.
Please suggest me some solution.
Thanks,
Manoj Dwivedi