I have two functions:
function changeImage(imgName)
{
image = document.getElementById('imgDisp');
image.src = imgName;
}
function changeSize()
{
document.getElementById('imgDisp').setAttribute("datamask","../files/test/2.png");
}
They are both called with an "onclick" event:
<img id="imgTemp" onclick="changeImage('../files/templates/blank/<? echo($one['id'])?>.jpg');changeSize();"
What I want is so that changeSize is called again after changeImage is executed. I was advised to use callback but most examples I have seen deal with variable callback inside a function and not with two functions.
Edit: The function change size should put a mask on the image, giving the "datamask" as a parameter to another function in another .js file. The image gets the right "datamask" parameter, but the mask is not applied.
changeSize()inchangeImagefunction:/imgtag and you change itsidtoimgDisp. Provide more information about the behaviour you expect and you get.