Yes to be specific we would need a link to the page. In general though the last function invokes the second using its return value to do something with, the second likewise with the first, ex:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function one(){
return document.getElementById('something').innerHTML;
}
function two(){
return one().replace(/span/g, 'div');
}
function three(){
document.getElementById('something').innerHTML = two();
}
</script>
</head>
<body>
<div id="something"><span>Some Text</span><span> Some More Text</span></div>
<input type="button" value="Go" onclick="three();">
</body>
</html>
But if one of the functions takes a while to do what it does, there might be problems. There might not be, but if there are, at that point you need a callback - say when function one is finished it runs function two. And when function two is done it runs function three, the order is reversed and we start at function one. If that's what's going on we would need to see the page.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks