C
Chris
I have a snippet of a function below I fire up in the body tag of my
webpage to show a hidden layer and do some stuff when any link with
the name "showlink" is clicked.
In the displayed layer there is some html and more javascript. How
would I update the value of "str" with "node_id" each time a link is
clicked? I can't figure it out...
Many thanks,
Chris
// function in body tag
function showStuff(evt,txt){
var node = (evt.target) ? evt.target : ((evt.srcElement) ?
evt.srcElement : null );
if (node.getAttribute("NAME") == "showlink") {
node_id = node.getAttribute("ID");
var cfmBox = document.getElementById(frmBox);
var cfmData = document.getElementById("cfmDataAsset");
cfmData.setAttribute('value', node_id);
}
}
webpage to show a hidden layer and do some stuff when any link with
the name "showlink" is clicked.
In the displayed layer there is some html and more javascript. How
would I update the value of "str" with "node_id" each time a link is
clicked? I can't figure it out...
Many thanks,
Chris
// function in body tag
function showStuff(evt,txt){
var node = (evt.target) ? evt.target : ((evt.srcElement) ?
evt.srcElement : null );
if (node.getAttribute("NAME") == "showlink") {
node_id = node.getAttribute("ID");
var cfmBox = document.getElementById(frmBox);
var cfmData = document.getElementById("cfmDataAsset");
cfmData.setAttribute('value', node_id);
}
}