Hello,
i have to access a multipage that was added dynamically on server-side on the client-side with javascript to make it visible and set the selected index.
For example, a multipage that was added at designtime i access like this:
This works very well. But now i have to access a dynamically added multipage. All my attempts are without luck.
In codebehind i set a unique id to each dynamic added multipage. In html-output that is generated the multipages are stored as div-tags with a id that is equal to that, that i set in codebehind on server-side.
so far i tried different ways to get the control on client side.
But ever i try to set the selected index, a error occurs and tells me, that the element doesn't contain such a method and so on.
Thanks for your assistence...
Thorsten
i have to access a multipage that was added dynamically on server-side on the client-side with javascript to make it visible and set the selected index.
For example, a multipage that was added at designtime i access like this:
function selectNews() { var mV = $find("<%= radThumbs.ClientID %>"); mV.set_selectedIndex(1); }This works very well. But now i have to access a dynamically added multipage. All my attempts are without luck.
In codebehind i set a unique id to each dynamic added multipage. In html-output that is generated the multipages are stored as div-tags with a id that is equal to that, that i set in codebehind on server-side.
so far i tried different ways to get the control on client side.
Attempt #1:alert('item.children[i].innerHTML.replace(/\s/g, "")');var test = $find(item.children[i].innerHTML.replace(/\s/g, "")); test.set_selectedIndex(1);
Attempt #2:alert('item.children[i].innerHTML.replace(/\s/g, "")');var test = document.getElementById(item.children[i].innerHTML.replace(/\s/g, ""));
test.set_selectedIndex(1);
In all attempts the alertbox shows the correct id.Thanks for your assistence...
Thorsten