Datatables: How to get variable value from another function
<p>I facing small issue. How to get variable value from another function in Datatables.</p>

<p>My Javascript code:</p>

<pre><code>var id = "";
var type = "";

show = function(id, type){ //id=5, type=3
        id = id;
        type = type;
}

var pTable = $("#example").DataTable({
    processing: true,
    serverSide: true,
    sort: true,
    ajax: {
        url: "/url/"+id+"/"+type,
        dataType:"json"
    },
</code></pre>

<p>Console log result:</p>

<pre><code>GET: /url///;
</code></pre>

<p>How to get value ?
Sorry for bad english.</p>