Hi guys, I’m trying to write my first custom bit of JavaScript, and Im not doing very well ha ha… Yeah, Im a total JS noob, so right now Im trying to create ActionScriptified-JavaScript
I want to call a function from Flash, passing a variable, and then fill the contents of an empty div with the dynamic link. This is what I have so far, but Im having a bit of trouble…
My function:
function showDynamicLink(number){
var link:String = “<a href=’/view/” + number.toString() + “’ >View</a>”;
document.getElementById(‘divToReplaceContentOf’).innerHTML = link;
}
showDynamicLink(86);