title: AJAX Call not working in liferay 6.2.2?
body: <p>I am trying to perform a <code>AJAX</code> Call. But what i get is <code>ResourceURL</code> as undefined when i see the error in chrome.</p>
  
  <p>Below is my code.</p>
  
  <p>Declaration:</p>
  
  <pre><code>&lt;liferay-portlet:resourceURL copyCurrentRenderParameters="&lt;%= false %&gt;" var="mainURL" /&gt;
  </code></pre>
  
  <p>Implementation:</p>
  
  <pre><code>xhr2.open("POST", resourceURL , false);
  </code></pre>
  
  <p>But at implmentation i get <code>resourceURL</code> as undefined. In 6.1 it used to work fine. I dont know if there are any alternatives for using this. Please guide.</p>