Hello i am trying to execute this sample code but keep getting an error
I get an Error stating that Splitter doesnt have the property GetPaneById
Any Ideas?
<input type="button" value="LEFT PANE" onclick="LoadExternalContent('http://www.google.com','RightPane');" /> |
<script type="text/javascript" language="javascript"> |
function LoadExternalContent(url, targetPaneID) { |
//obtain reference to the parent page |
//var splitterPageWnd = window.parent; |
//call a method from the parent page--> |
var splitterObject = GetMainSplitter(); |
var splitter = $find("MainSplitter"); |
alert(splitterObject); |
var _pane = splitter.GetPaneByID("LeftPane"); |
var pane = splitterObject.GetPaneById("LeftPane"); |
if (!pane) return; |
pane.set_contentUrl(url); |
} |
</script> |
I get an Error stating that Splitter doesnt have the property GetPaneById
Any Ideas?