I am trying to load a details partial view into a splitter pane.
I have this function to get the splitter:
<script type="text/javascript">
function getSplitter()
{
// "Splitter" is the value specified by the Name() method.
var splitter = $("#Splitter").data("tSplitter");
return splitter;
}
</script>
I also have a button:
<button onclick="LoadPane()" class="t-button">Detail</button>
And I have this function to call an action method that returns a partial view:
<script type="text/javascript">
function LoadPane() {
var splitter = $("#Splitter").data("tSplitter");
splitter.ajaxRequest(".t-pane:last", "/Project/ProjectDetail/100");
}
</script>
It does not work. If I remove the /100 parameter it works.
Is there any way of passing the url in dynamically or am I missing something?