summaryrefslogtreecommitdiffstats
path: root/emacs.d/nxhtml/tests/in/asp.asp
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-03-07 09:04:49 +0100
committerGravatar Tom Willemsen2011-03-07 09:04:49 +0100
commit94d2fc1815a919734353c942f224db1de4b4fcb8 (patch)
tree4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/asp.asp
parentd0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff)
downloaddotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz
dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip
Django, org
* Added nxhtml, mostly for django support. * Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/asp.asp')
-rw-r--r--emacs.d/nxhtml/tests/in/asp.asp40
1 files changed, 40 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/asp.asp b/emacs.d/nxhtml/tests/in/asp.asp
new file mode 100644
index 0000000..a557cb6
--- /dev/null
+++ b/emacs.d/nxhtml/tests/in/asp.asp
@@ -0,0 +1,40 @@
+
+<%@LANGUAGE="VBScript"%>
+
+<SCRIPT LANGUAGE="JavaScript" RUNAT="Server">
+function JSGreeting()
+ {
+ return "Greetings from a JavaScript Function";
+ }
+</SCRIPT>
+
+<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
+Function VBGreeting()
+ VBGreeting="Greetings from a VBScript Function"
+End Function
+
+Function toDollars(x)
+ toDollars=FormatCurrency(x)
+End Function
+</SCRIPT>
+
+<%
+var a = 2;
+var b = 2;
+var c = add(a,b)
+c += " (Two numbers are added by JavaScript, "
+c += "and then formatted into currency by VBScript.)"
+
+function add(x,y)
+ {
+ result = x + y;
+ result = toDollars(result);
+ return result;
+ }
+
+Response.Write("<HTML>\r")
+Response.Write(JSGreeting() + "<BR>\r")
+Response.Write(VBGreeting() + "<BR>\r")
+Response.Write(c + " <BR>\r")
+Response.Write("</HTML>\r")
+%>