I have a HTML-page where I include all of my js.files in the head
<head>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" href="css/addtab.css">
//some more
<link rel="stylesheet" href="css/tab_menu.css">
<script src="js/addtab.js"></script>
//some more
<script src="js/tab_menu.js"></script>
</head>
and in the addtab.js I declare a function, I want to use there and in the tab_menu.js:
addtab.js:
function addTab (a=null, b=null) {
//doing Stuff
}
tab_menu.js:
;$(function() {
tabs.delegate( "div.copier", "click", function() {
//doing stuff
addtab(title, descryption);
//doing stuff
});
});
but I get that:
ReferenceError: addtab is not defined
Edit: Okay.. it was just a typo, but thanks to the others that you pointed out a mistake I haven't noticed yet^^ So that I can solve them at a stroke...
addtabnot$.function addTab (a=null, b=null) {change it to functionaddTab (a, b)