[thelist] The finer details of javascript

Jerry Scannell JerryScannell at cox.net
Fri Nov 8 09:53:34 CST 2002


You are able to mix scripting languages, however, in order for the server to
recognize asp code, you have to have it in a file with a  .asp extension.

You can call vbscript routines from within javascript code, too.

Jerry

----- Original Message -----
From: "Rob Smith" <rob.smith at THERMON.com>
To: "Thelist (E-mail)" <thelist at lists.evolt.org>
Sent: Friday, November 08, 2002 10:38 AM
Subject: [thelist] The finer details of javascript


> Hi list,
>
> Once again, I seek your expertise. Here's the story: I've got an .htm page
> that has an external .js file "included." In that .js file, I'm trying to
> include some .asp stuff. example:
>
> foobar.js:
> var foo
> var bar
> bar = foo;
> function set_foobar()
> {
>    foo = bar;
> }
>
> <% @Language="VBScript" %>
> <%
>     ... do asp stuff ...
>     ... use a backend database to dynamically pull in ...
>     ... information to form concatenated javascript ...
>     ... function calls to set_foobar() ...
>     ... close backend database connection ...
> %>
>
> function set_barfoo()
> {
>    bar = foo;
> }
>
> Is this possible for one? If so, then what are the rules that I need to
> follow to make this work? If not, thanks anyhow.
>
>
> Rob.Smith
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>




More information about the thelist mailing list