This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 17, 2013, 2:52 PM
3 Posts

Why jquery .load does not work in Xpage in client

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
 
 I am trying to get the following similar JQuery code to work in xpage in client.  It works fine in the browser.  The results I see are :
Staus - success
Response - blank
xhr staus - 0

What am I missing? 

$("#success").load("/myagent?OpenAgent", function(response, status, xhr) {
  if (status == "error") {
    var msg = "Sorry but there was an error: ";
    $("#error").html(msg + xhr.status + " " + xhr.statusText);
  }
});

 Thanks,

 Kev 
 
 
 
Apr 17, 2013, 6:00 PM
366 Posts
Re: Why jquery .load does not work in Xpage in client
 I"m not positive, but I believe you are hitting a security wall in XPiNC.  XPiNC does not allow for any "network" calls outside of calls back to the application.  


I had this same problem calling agents and web services from XPiNC.  If you have access to an 8.5.3 runtime try it there as I believe they relaxed the security constrains a bit starting with that version. 


 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal