473,466 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MIME type in the XMLHTTP activeX object

Alright, i`m developing a site for a contest that runs off of
asyncronus HTTP requests(AJAX is the popular term). now i'm using code
that is based strongly off the mozilla developer center's "ajax:getting
started" page found at
http://developer.mozilla.org/en/docs...etting_Started
i`ve tested thier version and it works fine. but when i wrote the code,
opera and FF accepted the code, noteably excluding IE. i've narrowed
the problem to the server, but from there i'm clueless.

when i coppied the example code verbatim to my server and ran it, IE
failed agian. so i suspect that comcast's server is somehow not sending
the correct MIME type becuase the responseXML attribute of the XMLHTTP
activeX object is empty. i know of the FF workaround for this by using
..overrideMimeType(text/xml) but i dont know of an activeX (or
Jscript)counterpart to it.

is there something i need to modify on the server-side to get the
correct MIME types sent?
or is my problem elsewhere

Nov 29 '05 #1
1 2534
wh******@gmail.com wrote:
is there something i need to modify on the server-side to get the
correct MIME types sent?


Yes, you need to serve the resource as text/xml if you want to use
`responseXML' with MSXML. That's a FAQ, and Google is your friend
[psf 6.1]:

<http://www.google.com/search?q=xmlhttp+responsexml>

What to do exactly depends on the server and the server-side application
platform you are using. I suggest you retrieve the response headers of
the request and ask in the appropriate newsgroup.
PointedEars
Nov 29 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave | last post by:
So, I have some simple asp code to send a response to the client with a particular ContentType defined, code shown below: Response.Clear Response.ContentType = "application/x-custom"...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
3
by: Tim::.. | last post by:
Can someone please help me with this annoying little problem... I use to use Microsoft.XMLHTTP in asp to pull html from other websites and inbed it into my website but for some reason I can't...
5
by: Brent | last post by:
This AJAX stuff is all new to me. To try it out, I borrowed this code from a website: ======================== var http_request = false; function makeRequest(url) { http_request = false;
5
by: McKirahan | last post by:
Which of these should Firefox 1.5 support? MSXML2.XMLHTTP.5.0 MSXML2.XMLHTTP.4.0 MSXML2.XMLHTTP.3.0 MSXML2.XMLHTTP Microsoft.XMLHTTP WinHttp.WinHttpRequest.5 WinHttp.WinHttpRequest.5.1
3
by: shypen42 | last post by:
Hi everybody, I'm pretty new to Javascript (I'm more on the server-side usually :) I've been doing some XMLHttp request lately, communicating in an "Ajax" style (to be buzzword compliant) with...
3
by: Maris Janis Vasilevskis | last post by:
Hi, I create a binary file on client side using ActiveX. Now, I need to upload it. First idea - hidden Input type=file Does not work, because value is read only. A quickly made working...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
9
by: balakrishnan.dinesh | last post by:
hi frnds, Is Ajax can only used as xmlhttp or else it can use for anyother purpose, If any sample example code for that, plz reply to me soon. Thanks Dinesh B...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.