The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Javascript help (hopefully last time)! by lemurtx 2002-11-11 10:38:26
Is it possible to call a javascript source file for an array, with other functions in the head section?

Problem: i have a very large array (over 300 elements). In my final project, one item we have to have is a javascript source file. Since this array was so huge, would I be able to put it in a source file? It sounds as if I wouldn't be able to, if other javascript commands are supposed to be ignored if there is a call to a source file.

The code is something like:

<head>
<script language="javascript" src="source.js">
function one() {
}
function two() {
}
CPI = new makeArray

function three() {
}

</script>
</head>
Or, do I need to put all of the javascript, functions and array, in a source file, and call the whole thing?
Thank you!!!
[ Reply ]
  i'm gonna hazard a guess here... by cybergeek2002-11-11 10:41:36
    yup by lemurtx2002-11-11 10:54:45
      kewl by cybergeek2002-11-11 10:57:29

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)