This is a migrated thread and some comments may be shown as answers.

[Solved] splitter.ajaxRequest does not appear to allow dynamic urls

0 Answers 80 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phil
Top achievements
Rank 1
Phil asked on 10 Oct 2011, 11:12 PM

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?

Tags
Splitter
Asked by
Phil
Top achievements
Rank 1
Share this question
or