Re: 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

Re: calling functions from cgi

From: mick white <mick@mickweb.com>
Date: Tue Jan 31 2006 - 00:35:28 CET

Tony Rice wrote:

> 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:

No, you need a ">" after: src="/js/foo.js"
Mick

>
> <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:08 2006