L
Leonardo Santos-Macias
I need a better way to reference a control using javascript from inside a
user control. I need the suer control to know about the name of the user
control vaiable upon use.
i.e. document.getElementById("my_discussionPanel_imgExpand").src = ...
The above does work fine if the class that uses the user control call it
my_discussionPanel (imgExpand is a control inise the suer control)
The problem is that this is not very general since the name of the user
control variable could be different.
i.e. a class defines
Dim your_newDiscussionPanel as DiscussionPanel
then
the declaracion in the user control
document.getElementById("my_discussionPanel_imgExpand").src
will not be valid
Is there any other way to do this???
Thanks
Leonardo
user control. I need the suer control to know about the name of the user
control vaiable upon use.
i.e. document.getElementById("my_discussionPanel_imgExpand").src = ...
The above does work fine if the class that uses the user control call it
my_discussionPanel (imgExpand is a control inise the suer control)
The problem is that this is not very general since the name of the user
control variable could be different.
i.e. a class defines
Dim your_newDiscussionPanel as DiscussionPanel
then
the declaracion in the user control
document.getElementById("my_discussionPanel_imgExpand").src
will not be valid
Is there any other way to do this???
Thanks
Leonardo