I have a WebSplitter (let’s name it “splitterMain” for clarity.) I need to reference it from client-side code.
When I make this call:
var varSplitter = document.getElementById("<%=splitterMain.ClientID%>");
varSplitter gets a reference to some DOM object, not WebSplitter (it lacks properties documented in WebSplitter CSOM).
More information:
I noticed that some controls have designated client-side functions that can be used instead of “getElementById”. For example, WebCalendar has function called “igcal_getCalendarById” that retrieves the reference to WebCalendar, not corresponding DOM object.
Please advise:
How to get reference to WebSplitter in JavaScript client-side code.
Thank you.
You should use $find("controlId") to get the client object.