Forum: JavaScript / DHTML / AJAX Dec 29th, 2008 |
| Replies: 8 Views: 1,941 @ ~s.o.s~ - there are a few reasons I'd use getElementsByTagName. The first is that the links collection only includes anchors with an href attribute; its unlikely but still possible that an <a> tag... |
Forum: JavaScript / DHTML / AJAX Dec 29th, 2008 |
| Replies: 8 Views: 1,941 You're on the right track but need to change a few things. Here's the revised code with a comment number next to the changes:
window.onload = initMenu; // 1
function initMenu() {
var... |
Forum: XML, XSLT and XPATH Dec 27th, 2008 |
| Replies: 1 Views: 886 I've been scratching my head trying to figure this out. Basically I am trying io impliment the CSS selector ":only-of-type" in XPath 1. The selector should only pick elements that have no other... |