
Originally Posted by
francoom
Hello. Your form dependency is working great, but when included on a page with the top navigational menu script, the form dependency won't work.
These are two older scripts and their authors aren't around. Oh and:
Your page is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice first.
And:
Please post new questions in a new thread like here where I've moved this, and:
Warning: Please include a link to the DD script(s) in question in your post. See
this post for more information.
That said, it's an onload conflict. Both scripts want control of the onload event. To fix it, replace:
Code:
<script type="text/javascript">
window.onload = function() {
setupDependencies('weboptions');
};
</script>
with:
Code:
<script type="text/javascript">
(function(){
var func = function() {
setupDependencies('weboptions');
};
if (window.addEventListener){
window.addEventListener('load', func, false);
}
else if (window.attachEvent){
window.attachEvent('onload', func);
}
})();
</script>
Bookmarks