This is a discussion on "[SOLVED] XmlHttpRequest not working properly" within the JavaScript Forum section. This forum, and the thread "[SOLVED] XmlHttpRequest not working properly are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] XmlHttpRequest not working properly
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] XmlHttpRequest not working properly
I'm trying to learn javascript at the moment, but am having a problem with XmlHttpRequest.
Hopefully someone can help me out with this one, the following code works on my PC using Opera/9.24 (Windows NT 6.0; U; en) (and other browsers), but not on the Wii. On the Wii, it will alert "file found" (see line57 of the code), so I guess it must create the object okay, but it does not alert the responseText on the following line. Nor does it alert an error message. I did some googling, but couldn't see anything about the Wii not supporting responseText and I'm pretty sure responseText is used in google maps which work on the Wii. So, it's probably something wrong with my code. If anyone can help with this it would be greatly appreciated!
|
|
|
|
#2
|
|||
|
|||
|
Re: XmlHttpRequest not working properly
What is Wii by the way..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#3
|
|||
|
|||
|
Re: XmlHttpRequest not working properly
Gaming console from Nintendo. Kind of a weird platform to be testing on
But, back on topic; I can't see any errors in your code, but when I do AJAX I use slightly different objects:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
#4
|
|||
|
|||
|
Re: XmlHttpRequest not working properly
Hi
Thanks for your reply. I had not heard of using those program ids before, but after doing a bit of googling (and reading http://forums.asp.net/t/1000060.aspx?PageIndex=2) it seems they just use version 3 or lower. Since version 3 is installed with IE6, I would've thought it would be better to just specify v3 or v6. It shouldn't make any difference on the wii anyway since that uses Opera. After adding alerts in like you suggested, I found that only the first alert worked on the wii, so removing all the alerts except the one with responseText made it work. But I tried another page with a script that just has a couple of alerts (and doesn't create an XmlHttpRequestObject) and on that page both alerts worked properly, so it's not that the wii can only display one alert per page. Also, another page very similar to the one I was having trouble with, if I tried to write the responseText to the body and also to a new window it wouldn't work. If I comment out the new window so it just writes to the page it works. So I guess the problem is solved (for this example anyway), although it would be nice to know why it originally didn't work and if it could be made to work in that way. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| confirm dialog not working properly in IE... | thenamenoonehastaken | JavaScript Forum | 1 | Jan 24th, 2008 04:24 |
| Problems with XmlHttpRequest Object: readystate won't go past 1 | hype | JavaScript Forum | 1 | Jan 13th, 2008 14:18 |
| [SOLVED] Webpage not displaying properly in Firefox | Johnathan | Web Page Design | 25 | Jan 5th, 2008 01:34 |
| xmlhttprequest, firefox hangs on 3rd call | simonB2007 | JavaScript Forum | 0 | Jun 12th, 2007 15:26 |
| background-repeat: repeat y not working properly | AdRock | Web Page Design | 12 | Feb 25th, 2007 22:17 |