Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am getting a javascript runtime error for a property it says
JavaScript runtime error: Unable to get property 'AUTH_ERP_UI_AUTHORIZATION_DETAIL_ID' of undefined or null reference

Can anybody help me for the solution for this error.

Below is my code for javascript.
C#
 If  UserType = "C" Then
                        strBuilder.Append(RSmartUtl.DumpingAuthFromPopup(Page, CompID,     Trim(e.Item.Cells(31).Text), UserID, 584, "deductInstruction_form", False))


   strBuilder.Append("window.opener.document.deductInstruction_form.AUTH_ERP_UI_AUTHORIZATION_DETAIL_ID.value='';" & vbCrLf)
                        strBuilder.Append("window.opener.document.deductInstruction_form.AUTH_USER_GROUP_ID.value='';" & vbCrLf)
                        strBuilder.Append("window.opener.document.deductInstruction_form.AUTH_USER_NAME.value='';" & vbCrLf)
                        strBuilder.Append("window.opener.document.deductInstruction_form.AUTH_USER_GROUP_TYPE.value='';" & vbCrLf)
                        
End if

after this ir returns 
window.opener.document.deductInstruction_form.AUTH_ERP_UI_AUTHORIZATION_DETAIL_ID.value=unescape('3036');
window.opener.document.deductInstruction_form.AUTH_USER_GROUP_ID.value=unescape('1');
window.opener.document.deductInstruction_form.AUTH_USER_NAME.value=unescape('cmc');
window.opener.document.deductInstruction_form.AUTH_USER_GROUP_TYPE.value=unescape('U');
Posted
Updated 4-Feb-14 19:39pm
v2

1 solution

Check if Control is in visible mode ..!
 
Share this answer
 
Comments
Member 9410081 5-Feb-14 3:34am    
It is in visible mode.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900