Going to Ajax Experience
I’ll be standing in the Google booth at the Ajax Experience conference on Friday afternoon.
I guess it is time for me to figure out what all this Ajax hype is all about.
I’ll be standing in the Google booth at the Ajax Experience conference on Friday afternoon.
I guess it is time for me to figure out what all this Ajax hype is all about.
May 12th, 2006 at 11:00
“…I guess it is time for me to figure out what all this Ajax hype is all about…”
haha…”may fools day”?
Why aren’t you among the speakers?
May 13th, 2006 at 13:06
I don’t know jack about ajax. I know a few things about JS and DHTML but those are not cool any more
Seriously I’m not a good speaker and I’m way too shy.
May 13th, 2006 at 13:41
Erik, it was great meeting and talking with you at the show!
Best,
Brad
May 16th, 2006 at 2:00
Sorry that this has nothing to do with the post.
I’m trying to find an answer to a problem and can’t seem to find one - I’m guessing you might be able to help.
I use a number of prototyped methods in FF to simulate IE methods, which I’m sure you’ll be familiar with. For instance this one
// to simulate IE’s .selectNodes
Document.prototype.selectNodes = function(sExpr, contextNode) {
var oResult = this.evaluate(sExpr, (contextNode? contextNode : this), this.createNSResolver(this.documentElement), XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
var nodeList = new Array(oResult.snapshotLength);
nodeList.expr = sExpr;
for(i=0;i
May 16th, 2006 at 3:55
Mark, this is one way of doing it:
Document.prototype.selectNodes = function(XPath, XNode) {
if(!XNode) XNode = this;
this.ns = this.createNSResolver(this.documentElement);
this.qI = this.evaluate(XPath, XNode, this.ns, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
aResult = [];
for(i=0; i 0)? this.xI[0] : null ;
}
Element.prototype.selectNodes = function(XPath) {
return this.ownerDocument.selectNodes(XPath, this);
}
Element.prototype.selectSingleNode = function(XPath) {
return this.ownerDocument.selectSingleNode(XPath, this);
}
/hbi
May 16th, 2006 at 3:58
Mark, unfortunatelly the brackets messed it up…a new try:
Document.prototype.selectNodes = function(XPath, XNode) {
if(!XNode) XNode = this;
this.ns = this.createNSResolver(this.documentElement);
this.qI = this.evaluate(XPath, XNode, this.ns, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
aResult = [];
for(i=0; i<this.qI.snapshotLength; i++)
aResult[i] = this.qI.snapshotItem(i);
return aResult;
}
Document.prototype.selectSingleNode = function(XPath, XNode) {
if(!XNode) XNode = this;
this.xI = this.selectNodes(XPath, XNode);
return (this.xI.length > 0)? this.xI[0] : null ;
}
Element.prototype.selectNodes = function(XPath) {
return this.ownerDocument.selectNodes(XPath, this);
}
Element.prototype.selectSingleNode = function(XPath) {
return this.ownerDocument.selectSingleNode(XPath, this);
}
May 17th, 2006 at 2:53
Speaking of which, are you one the dev’ers behind this: http://googleblog.blogspot.com/2006/05/making-ajax-development-easier.html#links ?
May 17th, 2006 at 9:31
I’m not involved in that product.
May 17th, 2006 at 9:44
Thanks Hakan, I’ll give that a go and write back here with progress.
May 19th, 2006 at 10:40
Erik,
Great to see you again!
Hopefully, you will speak in the 2007 event and who cares if you’re shy!
Oliver