gilgalbiblewhee
01-14-2010, 02:02 PM
I have this in a separate js file:
function cancelMyLatestWorks(){
var olddiv = document.getElementById('samplesite');
if (olddiv && olddiv.parentNode && olddiv.parentNode.removeChild){
olddiv.parentNode.removeChild(olddiv);
}
}
What this does is close the div tag. And the swf file is in the same div tag. Within the swf file there's a button that has this:
on (release) {
getURL("javascript: cancelMyLatestWorks()", "_self");
}
But it's not working.
function cancelMyLatestWorks(){
var olddiv = document.getElementById('samplesite');
if (olddiv && olddiv.parentNode && olddiv.parentNode.removeChild){
olddiv.parentNode.removeChild(olddiv);
}
}
What this does is close the div tag. And the swf file is in the same div tag. Within the swf file there's a button that has this:
on (release) {
getURL("javascript: cancelMyLatestWorks()", "_self");
}
But it's not working.