Details - Web 2.0 & AJAX :: Permission Denied while accessing client page from server

This thread was displayed: 140 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
rahul bs
02-19-2007 12:43:12 GMT +2

Sir

i want to access the client localhost from the server jsp page using ajax application.But when i give the url eg:url="htpp://localhost:8080/Login/test.jsp" and i am running the tomcat in the client side an error displays that "Permission Denied"

i also give  ip address which is dynamic but the same error.But i tried this from client to server i can access the server(static ip) page Please help me

My Code Is Like this

-----------------------------------------------------------------------------------------------------

<html>
        <head>
           <script language="Javascript">
        function postRequest(strURL) {

 var xmlHttp;

        if (window.XMLHttpRequest) {

         var xmlHttp = new XMLHttpRequest();

       } else if (window.ActiveXObject) {
         var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");

       }

    xmlHttp.open('POST', strURL, true);
    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttp. {
        if (xmlHttp.readyState == 4) {
            updatepage(xmlHttp.responseText);
        }
    }
    xmlHttp.send(strURL);
        }
  

        function updatepage(str){

    document.getElementById("result").innerHTML = 
 "<font color='red' size='5'>" + str + "</font>";;

        }

        function showCurrentTime(){
 var url="http://localhost:8080/Login/test.jsp";
 postRequest(url);
        }
        </script>
        </head>
        <body>
        <h1 align="center"><font color="#000080">Ajax Example</font></h1>
        <p><font color="#000080">&nbsp;
        <form name="f1">
  <p align="center"><font color="#000080">&nbsp;<input value="   From Server   "
    type="button" name="showdate"></font></p>
  <div id="result" align="center"></div>
        </form>
        <div id=result></div>
        </body>
        </html>
----------------------------------------------------------------------------------------------------------

anyone can help me.is there any other way i can access a client jsp page using ajax application plz give me an example .client is also runing the tomact application and the target file is in the client machine

Back | Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
02-19-2007 13:49:39 GMT +2

Hello,

This is not related to any of our products, so I'm afraid that we cannot help your with this. However, maybe someone else reading this forum will be able to help you.

Regards,
Razvan RACASANU

Reply | Quote | Top
Home > Support > Forums > Web 2.0 & AJAX > Details - Web 2.0 & AJAX
Adobe acquired InterAKT
InterAKT has been acquired by Adobe.
Learn more
 
© Adobe Systems Romania. All rights reserved.