title: Liferay and Internet Explorer 8 (ie8)
body: <p>I use Liferay 6.2-ce-ga3 and I want to create some links in on my site in javascript.</p>
  
  <p>Following the <a href="http://www.liferay.com/en/documentation/liferay-portal/6.2/development/-/ai/creating-portlet-urls-in-javascript-liferay-portal-6-2-dev-guide-07-en" rel="nofollow">liferay documentation</a> I am using</p>
  
  <pre><code>var portletURL = Liferay.PortletURL.createURL(baseUrl);
  </code></pre>
  
  <p>where I set the baseUrl in the jsp with</p>
  
  <pre><code>baseUrl = '&lt;%= PortletURLFactoryUtil.create(request, portletDisplay.getId(), themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %&gt;';
  </code></pre>
  
  <p>This works fine in firefox or chrome, but if I use Windows and Internet Explorer 8 I get</p>
  
  <pre><code>User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; 
  SLCC2;.NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center 
  PC 6.0; .NET4.0C; MS-RTC LM 8)
  
  Timestamp: Thu, 19 Mar 2015 11:40:08 UTC
  
  Message: 'Liferay.PortletURL' is null or not an object
  </code></pre>
  
  <p>What do I have to do to make it work in IE 8? Is there a special liferay js that I need to include?</p>
  
  <p>I can create the links in jsp using the method 2 of the documentation:</p>
  
  <pre><code>'&lt;portlet:renderURL &gt;
      &lt;portlet:param name="MYPARM" value="MYVALUE"/&gt;
      &lt;portlet:param name="PAGENAME" value="..."/&gt;
  &lt;/portlet:renderURL&gt;'
  </code></pre>
  
  <p>For now I will try to create links as much as possible in the jsp, but it would be nice to pass parameters to a link using javascript.</p>