[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 64702] document.appendChild does not work with img
From:       Luis Pedro Coelho <luis_pedro () netcabo ! pt>
Date:       2003-10-17 22:42:41
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=64702     




------- Additional Comments From luis_pedro@netcabo.pt  2003-10-18 00:42 -------
function newimage() {
        newimg = new Image;
        newimg.src = 'thumbs/20030828182016.jpg';
        newimg.alt = "image";
//      newimg.setAttribute('width', '100px');
//      newimg.setAttribute('height', '100px');
        var div = document.getElementById('main');
        div.appendChild(newimg);
        return false;
}

Is it just me or isn't appendChild supposed to take a Node created by the \
corresponding document?

I don't know what an Image is, BTW. I tried searching through the javascript docs at \
msdn + google and I didn't find it.

regards,
luis


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic