Ir para conteúdo
Fórum Script Brasil

Caiorr

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Tudo que Caiorr postou

  1. Tentei no ie6 e recebi a mesma mensagem negando o acesso !!!!!
  2. Ola Pessoal, Depois de muito vasculhar por ai ainda não encontrei um meio de executar um cross domain com o ajax. A situação é a seguinte: 1) Preciso abrir um site com Ajax, e tratar esse retorno (talvez nem precise exibir o retorno) 2) Procurei algum navegador sem esse bloqueio e nada. 3) Segue o código que estou utilizando (Mas com todos os navegadores que testei, recebo o Acesso Negado): &lt;script type="text/javascript"> function openAjax() { var ajax; try { ajax = new XMLHttpRequest(); } catch(ee) { try { ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { ajax = new ActiveXObject("Microsoft.XMLHTTP"); } catch(E) { ajax = false; } } } return ajax; } var ajax = openAjax(); ajax.open('GET', 'http://www.algumsite.com.br', true); ajax.onreadystatechange = function() { if (ajax.readyState == 1) { } // if->readyState->1 if (ajax.readyState == 4) { if (ajax.status == 200) { var total = ajax.responseText; } // if-status->200 } // if->readyState->4 } // ajax->onreadystatechange // Envia a requisição ajax.send(null); </script> 4) A idéia é extamente ter o retorno salvo em uma variável. Alguém tem alguma luz (código ou navegador sem esse bloqueio)?
×
×
  • Criar Novo...