Forums Register Login

Ajax call from a JSP-Page

+Pie Number of slices to send: Send
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!
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1002 times.
Similar Threads
Ajax, FireFox and IE
pass <bean:write> to a function
iterate doubt
Ajax call is not invoking properly ?
No action for JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:02:20.