www.webdeveloper.com

Search:

Type: Posts; User: garydale

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,314

    Thanks.

    Actually, I was just logging in to say I'd got it to work. It turns out that the Javascript interface to DOM is somewhat inconsistent (name clashes with css). Once I got the various exceptions coded...
  2. Replies
    7
    Views
    2,314

    works but...

    OK, I was able to get formatting by changing a span element to a font element then setting the style attribute "fontweight" to bold. My code would look something like this (from your example):
    var...
  3. Replies
    7
    Views
    2,314

    Here's an example: var boxTitle =...

    Here's an example:

    var boxTitle = document.createElement('b');
    var boxText = document.createTextNode(x[i].childNodes[pName].firstChild.nodeValue);
    ...
  4. Replies
    3
    Views
    713

    use a non-displayed block

    You could store the text in a field that is not displayed. I frequently use <span>s that have display: none; set inside an anchor, then use the a:hover property to set display: block; when the mouse...
  5. Replies
    7
    Views
    2,314

    how to get IE to recognize DOM attributes

    I want to separate content from formatting, but IE seems to want them to stay together. Basically, I'm loading the content from an XML file then using Javascript to create the page. I use CSS to...
  6. I agree with criterion9. Most (all the ones I...

    I agree with criterion9. Most (all the ones I deal with) site hosting companies provide scripts for doing this on even the most basic hosting setups. They probably won't show you the script but they...
  7. Replies
    1
    Views
    2,126

    Nevermind. I messed up the DTD the last time I...

    Nevermind. I messed up the DTD the last time I changed xml file layout then failed to revalidate it. The w3c validator caught an error that Firefox was perfectly happy to live with but that IE...
  8. Replies
    1
    Views
    2,126

    childnodes.length problem with IE

    I have a piece of code that has been working in both Firefox and IE for many years. I am currently reusing it in another page and it continues to work in Firefox but not in IE. I use the onload...
Results 1 to 8 of 8
HTML5 Development Center



Recent Articles