JavaScript XML IE and FireFox

Once again I’m doing a lot of JavaScript, but with XML.  I have also been tasked with getting this JS to work in FireFox and IE. 
 
Some of the thing I’m having to do are the following:
Load XML
Create new Node/Elements
Edit Attribute
Find Node/Element (based on XPath)
 
//This works with IE and FireFox
function LoadXml(xml) {
 var xmlDoc = null;
 if (window.ActiveXObject) {
  xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async = "false";
  xmlDoc.loadXML(xml);   
 } else if (document.implementation && document.implementation.createDocument) {
  parser = new DOMParser();
  xmlDoc = parser.parseFromString(xml, "text/xml");
 }
 return xmlDoc;
}
 
function FindNodeOnElementAndAttribute(xmlDoc, elementName, attributeName, attributeValue) {
 var node
 var xPath = "//" + elementName + "[@" + attributeName + "=’" + attributeValue + "’]";
 
 if (window.ActiveXObject) {
   node = xmlDoc.selectSingleNode(xPath);
  } else if (XPathEvaluator) {
  var xpe = new XPathEvaluator();
  var nsResolver = xpe.createNSResolver(xmlDoc.ownerDocument == null ? xmlDoc.documentElement : xmlDoc.ownerDocument.documentElement);
  var results = xpe.evaluate(xPath, xmlDoc, nsResolver, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  node = results.singleNodeValue;
 }
 return node;
}
 
Resources:
XML DOM Create Nodes (W3schools.com)
 
XPath Axes(W3schools.com)
 
XML DOM Examples
 
Parsing the XML DOM
 
XML DOM Load Function
 
DevGuru – XMLDom Documentation
 
Using JavaScript to retrive XML in IE and FireFox
 
FireFox – Converting XMLObject to String
 
selectSingleNode and FireFox
 
Parsing XML in JavaScript
 
How do I load an XML formatted string into the DOM?
 

Problem retrieving string value of XML document in Firefox

 

ASP.NET AJAX WebServices and ScriptServices

I’ve been working with ASP.NET AJAX for the past week and the following resources allowed me to get up to speed pretty fast.  The following two books that I list are pretty good.   Both of the them cover some different information.  I believe the Professional ASP.NET 2.0 AJAX is a little easier to read and the examples are much better. 
 
Video – How Do I: Use an ASP.NET AJAX ScriptManagerProxy?
 
Video – How Do I: ASP.NET AJAX Enable an Existing Web Service?
 
Video – How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX?
 
Video – How Do I: Choose Between Methods of AJAX Page Updates?
 
MSDN Article – Using ASP.NET Session State in a Web Service
 
Book – Introducing Microsoft ASP.NET AJAX (Dino Esposito)
 
Book – Professional ASP.NET 2.0 AJAX 
 
 

AJAX and JavaScript in ASP.NET & Visual Studio 2008

I have once again started working with AJAX.  About 8 months ago I was pretty deep into ASP.NET and AJAX, but since then I’ve done little with AJAX.  I’ve been finding many good reference for AJAX and do not have a common place to keep all these reference.  So for convince I’m going to keep the references here. 
 
 
Create Control Extenders
Using Visual Studio 2008, ASP.NET 3.5, and AJAX
(I went through the example in this article and everything seemed to work fine)
 
CodeProject – ASP.NET AJAX Controls and Extenders
4.36 out of 5. 
(This article looks very promissing)
 
Building ASP.NET 3.5 AJAX Extender Controls
 
MSDN – JScript IntelliSense Overview
 
WebCast – ASP.NET AJAX Support in Visual Studio 2008
(Good video)
 
WebCast – IntelliSense for Jscript and ASP.NET AJAX (in Visual Studio 2008)
 
JScript IntelliSense: A Reference for the “Reference” Tag 
/// <reference name="MicrosoftAjax.js" />