calling functions from cgi
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

calling functions from cgi

From: Tony Rice <rtphokie@gmail.com>
Date: Tue Jan 31 2006 - 00:11:05 CET

If I've loaded a set of functions in a webdocument like this:

<script language="JavaScript" type="text/javascript"
src="/js/foo.js"</script>

Shouldn't I be able to call a function from inside foo.js later in that
same document by doing something like this:

<script language="JavaScript" type="text/javascript">myfunction(myargs)
</script>

Even though it's generated from a CGI script? The all loaded javascript
files have the same scope do they not? It's not like the functions in
foo.js available only to other functions within that file? Right?
Received on Tue Feb 7 21:28:06 2006