Thanks to anyone who may be able to steer me in the right direction :)
Interesting that this works fine in All Browsers BUT Internet Explorer.
fairly simple goal......
get a "src" img element attribute and display it (by manipulating DOM elements) on the webpage under a graphic...(for a dynamic label)
[code=javascript]var mainPic = document.getEle mentById("place holder");
var picSrc = mainPic.getAttr ibute("src");
var container = document.getEle mentById("divCo ntainer");//the container div refference so I can use replaceChild() method to replace the targeted <p> Child Node
var oldText = document.getEle mentById("repla ceMe");
var newPara = document.create Element("p");
var lableName = document.create TextNode(picSrc ); //this variable doesnt want to transfer in IE, works fine in FF and Safari
newPara.appendC hild(newName);
newPara.setAttr ibute("id","rep laceMe");
container.repla ceChild(newPara ,oldText);[/code]
again, the goal is satisfied if all I can do is get IE to actually out put a dynamic text variable using the DOM with replaceChild()
Is there a known issue with outputing strings using the DOM in IEx?
thanks to all who lend some brain matter.
					Interesting that this works fine in All Browsers BUT Internet Explorer.
fairly simple goal......
get a "src" img element attribute and display it (by manipulating DOM elements) on the webpage under a graphic...(for a dynamic label)
[code=javascript]var mainPic = document.getEle mentById("place holder");
var picSrc = mainPic.getAttr ibute("src");
var container = document.getEle mentById("divCo ntainer");//the container div refference so I can use replaceChild() method to replace the targeted <p> Child Node
var oldText = document.getEle mentById("repla ceMe");
var newPara = document.create Element("p");
var lableName = document.create TextNode(picSrc ); //this variable doesnt want to transfer in IE, works fine in FF and Safari
newPara.appendC hild(newName);
newPara.setAttr ibute("id","rep laceMe");
container.repla ceChild(newPara ,oldText);[/code]
again, the goal is satisfied if all I can do is get IE to actually out put a dynamic text variable using the DOM with replaceChild()
Is there a known issue with outputing strings using the DOM in IEx?
thanks to all who lend some brain matter.
Comment