Gudday all
I have reached the stage on my site where i would like to combine if possible all my js functions into a single js file and call the functions as appropriate.
With a little more work (! ) I can convert functions with very similar jobs to a common format and then I will be ready.
My problem is how to reference these various functions within the ext js?
Usually I put each function into it's own js i.e.
Code:
<script type="text/javascript" src="js/navigation.js">
</script>
but what I would like to do if possible is to reference internally these disparate functions within the single js file
Code:
<script type="text/javascript" src="js/navigation.js/function1">
</script> 
.....
<script type="text/javascript" src="js/navigation.js/function2">
</script>
Is this possible and how would it be done? I would need to pass the various parameters in a swell.
Or am I stuck with each function in it's own js file?