Hi, I got a request from a developer who want to access AjaxMethods from a different server location. He gave me the this web address http://ajaxextended.com/ that describes how to do this. I always said it is impossible to do this because of the security configuration in Internet Explorer and other web browsers. I never saw that it is possible...
Having a look on the implementation I was happy to see that I'm not wrong with my statement. ;) How is it working there? The reason why it is working there is that the wrapper will not access the foreign domain from the client-side JavaScript. It will take the complete parameters of the XMLHttpRequest object (url, http method, parameters,...) and send it to the own web server (where the original page requests has been initiated). The server-side code (in the example a PHP script) will open a socket connection and run the request to the other domain from there. The result will be returned to the web server and from there to the client. You have to think on an server-side wrapper. Some topics that are not working with this implementation: - Currently it is only supporting web browsers that can create a script element on the fly. - It is only possible to use a small amount of data to send to the foreign web server because of the use of http GET instead of POST. - Forms authentication and HttpCookies are not working. So, it is no problem to run the XMLHttpRequest at the server-side code, too, but it does not allow to access foreign domains from the client-side code. What is if you want to access a intranet web server that is not accessable from the web server your page is comming from? -- Best regards | Schöne Grüße Michael Microsoft MVP - Most Valuable Professional Microsoft MCAD - Certified Application Developer http://weblogs.asp.net/mschwarz/ http://www.schwarz-interactive.de/ mailto:[EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ajaxpro The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info -~----------~----~----~----~------~----~------~--~---
