|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by rwallacej in JavaScript, Programming for ASP.NET
Hi
I have a usercontrol which is displayed either directly on a master page, or nested on other user controls displayed on a master page. I need some Javascript to find a button on this page. An example of ID may be
ctl00$contentMiddle$MyUser
Control1_1
$MyUserCon
trol2_1$My
UserContro
l2_1$theBu
ttonToFind
There will only ever be one theButtonToFind .....but finding it is the problem.
Thanks in advance for Javascript to find the control. It is is found from a popup window, like this
1:
2:
|
var theButtonID = "...........theButtonToFind";
var z = window.opener.document.getElementsByName(theButtonID)[0];
|
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625