View previous topic :: View next topic |
Author |
Message |
dharrington -
Joined: 27 Mar 2007 Posts: 2 Location: Mass
|
Posted: Tue Mar 27, 2007 5:47 pm Post subject: Confused about javascript in cgi |
|
|
I'd like to run javascript in my asp pages, but I read that Abyss doesn't directly support javascript. What changes to my script are necessary, and how do I configure 'scripting parameters'? (Already set up for .asp)
Anything you could offer... |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Mar 27, 2007 5:53 pm Post subject: |
|
|
JavaScript is client side scripting, it has nothing to do with any HTTP server in existance. You do not have to make any changes to your scripts. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
dharrington -
Joined: 27 Mar 2007 Posts: 2 Location: Mass
|
Posted: Tue Mar 27, 2007 6:25 pm Post subject: Thanks |
|
|
The bad news is, it still doesn't work. I downloaded Firefox and enabled Javascript and Java, but nothing.
I'll keep digging in that direction.
Thanks again! |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Mar 27, 2007 6:39 pm Post subject: |
|
|
You will have an error in your JavaScript syntax. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Tue Mar 27, 2007 8:29 pm Post subject: |
|
|
If you want to try Javascript out, use this code:
Code: | <html>
<head>
<title>Javascript test</title>
<script type="text/javascript">
function test_js() {
alert("This is a Javascript alert. The page has finnished loading since you're reading this.");
}
</script>
</head>
<body onload="test_js()">
<p>Testing Javascript</p>
</body>
</html> |
If your Javascript isn't working, it's probably because of ASP screwing it up somehow, or you may have an error in your Javascript syntax.
What is the full output (source) of your page after the ASP execution? |
|
Back to top |
|
|
|