473,766 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ 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:getti ng
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
..overrideMimeT ype(text/xml) but i dont know of an activeX (or
Jscript)counter part 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 2556
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=xmlhtt p+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
2142
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" Response.Write "<?xml version='1.0' encoding='UTF-8'?><testing/>" Response.Flush I have a client side ActiveX control implementing IPersistMoniker that is
5
6089
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 loss even though I seem to be allocaitng everything; help would be *vastly* appreciated. What am I doing wrong here? I thought I was doing everything correctly (setting things to null, for example) but none of the memory seems to get replaced. ...
3
7661
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 seem to find out how to do it in ASP.NET??? I did find this example in C# but am not 100% sure it will do the same thing??? I also want the following code in VB rather than C#
5
3787
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
11815
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
2097
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 the server... Quite handy :) It works fine on Firefox, Opera and IE 6 with ActiveX enabled and apparently IE7 with ActiveX disabled.
3
2828
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 solution: Visible input type=file
13
25325
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 the version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to the latest installed version. This makes me wonder why sites like <http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to use Msxml2.XMLHTTP, first, and...
9
1658
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...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8835
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.