Friends

This code fails on IE with the message: "Object doesn't support this
property or method" yet works fine on firefox (linux and windows).

Why?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";><!-- /* -*- Mode: C++;
tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Test  </title>
<script type="text/javascript" src="MochiKit/MochiKit.js"></script>
<script type="text/javascript">

var errf = function(e){
    appendChildNodes("foo",  LI(null, "errf: "+e.message));
};

var succf = function(e){
    if(e == null){
        alert("addCallback  e is null");
        return;
    }
    appendChildNodes("foo", LI(null, "succf: "+e.toString()));

};

var load = function() {

    var req = getXMLHttpRequest();

    if (req.overrideMimeType) {
        req.overrideMimeType("text/xml");
    }

    var url_get_data = "http://192.168.0.5/cgi-bin/test.pl";;

    req.open("GET", url_get_data, true);
    var d = sendXMLHttpRequest(req).addCallback(succf);
    d.addErrback(errf );
    appendChildNodes("foo", LI(null, "sent"));
};
addLoadEvent(load);
</script>
</head>
<body>
<h3>TEST</h3>
<UL id="foo"></UL>
</body>
</html>


test.pl is...
#!/usr/bin/perl -w
use strict;
use CGI;
my $cgi = CGI->new();
my $out = $cgi->header('text/xml');
$out .= '       <meta>
<p value="0"/>
</meta>
';
# Globals
print $out;
warn "Sent: ".length($out);



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to