Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [AJAX]XMLHTTPREQUEST problem w IE
neo1986kk
post
Post #1





Grupa: Zarejestrowani
Postów: 561
Pomógł: 3
Dołączył: 2.02.2009

Ostrzeżenie: (0%)
-----


Witam już nie mam słow do tego IE

Dlaczego mi pokazuje błąd w tym kodzie?
  1. var sendReq = getXmlHttpRequestObject();
  2. var receiveReq = getXmlHttpRequestObject();
  3. var lastMessage = 0;
  4. var mTimer;
  5. //Function for initializating the page.
  6. function startChat() {
  7.  
  8. //Set the focus to the Message Box.
  9. document.getElementById('tresc').focus();
  10. //Start Recieving Messages.
  11. getChatText();
  12. }
  13. //Gets the browser specific XmlHttpRequest Object
  14. function getXmlHttpRequestObject() {
  15. if (window.XMLHttpRequest) {
  16. return new XMLHttpRequest();
  17. } else if(window.ActiveXObject) { //dokladnie w tej linijce on mi tu pokazuje że brak uprawnień? do czego? po wciśnięciu F5 jest ok.
  18. return new ActiveXObject("Microsoft.XMLHTTP");
  19. } else {
  20. document.getElementById('shout_content').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.';
  21. }
  22. }
  23.  
  24.  


Po odświeżeniu strony działa jak należy, co jest z tym nie tak? już nie mam siły.
Już wiem w czym jest problem, ale nie wiem jak go usunąć

  1. var wyslij= getXmlHttpRequestObject();
  2. var odbierz= getXmlHttpRequestObject();


jak to usunalem to nie wywalał już błędu no ale to musi być


Ten post edytował neo1986kk 18.04.2010, 23:37:13
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:07