- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have these functions:
==========================
function LoadXMLFile(sURL) {
var oXML;
try {
oXML = new ActiveXObject('Msxml2.DOMD
} catch(e) {oXML = false;}
if(oXML) {
//IE load XML document
oXML.async = false;
oXML.load(sURL);
if(oXML.parseError.errorCo
alert('error: ' + oXML.parseError.descriptio
return false;
}
}
if(!oXML) {
//Mozilla load XML document
try {
oXML = document.implementation.cr
} catch(e) {oXML = false;}
if(oXML) {
try {
oXML.load(sURL);
} catch(e) {oXML = false;}
}
}
return oXML;
}
function ConfirmTask(iTaskId, iPersonId, oCheckbox) {
var bChecked = oCheckbox.checked;
var sURL = '../rooster/ConfirmPersonP
var oXML = LoadXMLFile(sURL);
if(oXML) {
var sResult = parseInt(oXML.firstChild.t
alert(sResult);
if(!sResult) {
oCheckbox.checked = !oCheckbox.checked;
alert('it did not work');
} else {
alert('ok');
}
} else {
oCheckbox.checked = !oCheckbox.checked;
alert('no support for this');
}
return false;
}
=======================
It works fine in IE, but Firebird (0.8) returns an error
oXML.firstChild.text has no properties. Apparently something goes wrong the loading the XML. I looked at a lot of documentation, but i could not find a solution.
How can i make the thing work in Mozilla ??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ahosangPosted on 2004-04-09 at 11:28:57ID: 10793343
text is not a valid w3c DOM property of a node. Try: irstChild. nodeValue)
parseInt(oXML.firstChild.f