Com o ajaxGateway é possível via javascript realizar requisições por XMLHttpRequest de arquivos em subdomínios diferente.
A ideia é ter os XML em subdominios diferentes exemplo.:
HTML-> http://www.domain.com De onde a requisição sera feita.
XML-> http://xml.domain.com Destino da requisição
Em breve disponibilizarei mais informações referente o ajaxGateway.
instruções para execução junto com teste:
Faça o download que acompanha um diretório de testes Descompactar em um servidor web Altere o hosts de sua maquina apontando os subdomínios abaixo para o lugar que esta o ajaxGateway sub1.domain.com ipDoServidorWeb
sub2.domain.com ipDoServidorWeb
É estritamente necessário que o arquivo ajaxGateway.html esteja na raiz do servidor, caso esteja utilizando apache pode-se utilizar um 'alias' no httpd.conf Exemplo.:
Alias /ajaxGateway.html C:\web\ajaxGateway\ajaxGateway.html
Execute no navegador: http://sub1.domain.com/ajaxgateway/test/?xml=http://sub2.domain.com/ajaxgateway/test/teste.xml
30 Day Summary May 17 2013 — Jun 16 2013
|
12 Month Summary Jun 16 2012 — Jun 16 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.