I have a rad grid that uses an ascx for the edit form in a popup. In that ascx I have images that I'm swapping image URL's on mouse over with java script. I'm running into a problem because when using getelementbyid, the images are out of scope in the default .aspx and return null. The solution works fine in the default.aspx but not in the corresponding edit window ascx. Do I first need to reference the grid as the parent of the image?
<span
onmouseover="toggleEdit('PhoneEdit', 'over', $get('Toggled5'))"
onmouseout ="toggleEdit('PhoneEdit', 'up', $get('Toggled5'))"
onmousedown="toggleEdit('PhoneEdit', 'selected', $get('Toggled5'))"
onclick="toggleClick('PhoneEdit', 'click', $get('Toggled5'));return false">
<img src="Images/filter_phone_up.gif" id="PhoneEdit" style="border:0; outline:0;" alt="" />
<asp:HiddenField ID="Toggled5" runat="server" Value="up" />
</span>
Thanks
Blain
<span
onmouseover="toggleEdit('PhoneEdit', 'over', $get('Toggled5'))"
onmouseout ="toggleEdit('PhoneEdit', 'up', $get('Toggled5'))"
onmousedown="toggleEdit('PhoneEdit', 'selected', $get('Toggled5'))"
onclick="toggleClick('PhoneEdit', 'click', $get('Toggled5'));return false">
<img src="Images/filter_phone_up.gif" id="PhoneEdit" style="border:0; outline:0;" alt="" />
<asp:HiddenField ID="Toggled5" runat="server" Value="up" />
</span>
Thanks
Blain