What's going on with this javascript?
-
Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes.
document.getElementById("<%=imagetag.ClientID %>")
what does <%= mean? Thanks!Ian
-
Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes.
document.getElementById("<%=imagetag.ClientID %>")
what does <%= mean? Thanks!Ian
Not 100% sure but I have seen this used two ways. One is to do data binding, the other is to find control programmatically. See if that points you in the right direction.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
-
Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes.
document.getElementById("<%=imagetag.ClientID %>")
what does <%= mean? Thanks!Ian
The
<%=...%>
tag is a server tag to output a value. It's almost equivalent toResponse.Write(...)
. TheClientID
property of a server control contains the id that the control uses for the html element that it renders. When server controls are inside a container (like a user control) the id is prepended with the id of the container to keep it unique in the form. You use theClientID
property to get this generated id.--- single minded; short sighted; long gone;
-
Can someone let me know what is going on with this statement? I'm new to javascript. I don't understand what's between the quotes.
document.getElementById("<%=imagetag.ClientID %>")
what does <%= mean? Thanks!Ian
-
Not 100% sure but I have seen this used two ways. One is to do data binding, the other is to find control programmatically. See if that points you in the right direction.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
Thanks!
Ian
-
The
<%=...%>
tag is a server tag to output a value. It's almost equivalent toResponse.Write(...)
. TheClientID
property of a server control contains the id that the control uses for the html element that it renders. When server controls are inside a container (like a user control) the id is prepended with the id of the container to keep it unique in the form. You use theClientID
property to get this generated id.--- single minded; short sighted; long gone;
Thank you!
Ian
-
that means you are trying to access the server variable on client side.. hope so it will clear the problem Sarfaraz Nazir Solution Developer Accentys Inc
Thanks!
Ian