Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ajax call from a JSP-Page  RSS feed

 
Alexander Gerg
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Community.
I have a problem using Ajax in my JSF-Application.
I'm running a tomcat-container and want to access php-File placed in my "htdocs" of the apache server.
When i make a call like:

function getOnline(action, attribute, wait_id) {
var url = 'http://192.168.2.102/ProjektOnlineAjax/ajaxOnlineResponse.php?action='+action ...
// Here comes the trouble
// always the same "Access to restricted URI denied"
http.open('get', url);
http.onreadystatechange = verarbeiteOnline;
http.send(null);
}

I was trying to put localhost or localhost:80 instead of my IP but no chance to make it work.

Anyone an idee what i'am doing wrong???
Thank you!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!