title: How to execute renderURL in aui script or javascript in Liferay
body: <p>I have come across a scenario where I am required to use renderURL in javascript.
  I have a aui-datatable with many rows of data. Upon clicking of any row, I need to call a render URL to load the next view.</p>
  
  <p>Generally, I used to make use of renderURL in case of buttons by writing the renderURL in the onClick event. i.e,   </p>
  
  <p>aui:button name="TestButton" onClick="&lt;%=testRenderURL.toString()%>"</p>
  
  <p>But in the current scenario, the control will be in the delegate function of my datatable i.e, click handler function which is:-</p>
  
  <pre><code>Y.delegate('click', function(e) {
  var target = e.currentTarget;
  record = this.get('recordset').getRecord(target.get('id')).getValue();
  alert(record.name);
    //HERE I NEED TO CALL RENDER URL AND LOAD NEXT JSP PAGE
    // after fetching current row values. i.e, send record.name to next jsp file
  }, '#myTable', 'tr', dt); 
  </code></pre>