• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

render url problem in chrome  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Code as below


<portlet:actionURL var="setPolicyURL">
<portlet:param name="struts.portlet.action" value="/claims/setPolicy" />
<portlet:param name="currentTab" value="policyDetailsPage" />
</portlet:actionURL>


function setPolicyDTO(subline,policyCode,policyId,dbLookup){
document.getElementById("subline").value=subline;
document.getElementById("policyCode").value=policyCode;
document.getElementById("policyId").value=policyId;
document.getElementById("workflowStatus").value=dbLookup;
alert( "<%=setPolicyURL%>");
document.ClaimManagementForm.action = "<%=setPolicyURL%>";
document.ClaimManagementForm.submit();
}


above script working fine in IE browser . but in chrome browser action is not being called. Any solution please help me.

Thanks in advance.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I also face the same situation what you are facing now. Chrome doesn't allow url's because of the security issues. However you have one solution. Place the required doc's or images in your webapplication only , call them using its relative path not absolute.

Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!