title: Take path from application root in javascript
body: <pre><code>function detailed_link(cell_rowid) {
          var $tabs = $('#infrTab').tabs();
          $tabs.tabs('select', 1); // switch to third tab~
          objRowData = $('#' + pageGridId).getRowData(cell_rowid);
          //document.getElementById("Name").value = objRowData.amount;
  
          loadPage('Infringement/TaskDetail', 'taskDetails'); /* Path */
      }
  </code></pre>
  
  <p>I have write a javascript function loadPage(), that needs a path to some page as a parameter. I need to give this path from the application root. I dont want a relative path. Please let me know how can I do it.</p>