View previous topic :: View next topic |
Author |
Message |
eaansa -
Joined: 21 Jun 2004 Posts: 2
|
Posted: Mon Jun 21, 2004 5:14 pm Post subject: ASP Page with Javascript Embedded |
|
|
Hi,
I have an asp page which as an embedded Javascript. It work fine in IIS but when I tried it using Abyss webserver I get an error. I noticed that It can't process the Javascript.
How do I configure the webserver to process both Javascript and Vbscript embedded on the pages.
I will be grateful if you can help me out.
Thanks |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Jun 21, 2004 5:56 pm Post subject: |
|
|
ASP is a scripting language developed by Microsoft and they don't
want to release the interpreter unless you pay good money , where
talking $139 for ActiveHTML and so I would just learn PHP , its a bad
idea to learn ASP when ASP scripting don't come cheap. I learned a
little of PHP in like one month and you can to but if you do choose to
use ASP , have your wallet ready for Selisoft to drain it clean. LateR!
You can get a free trial of ActiveHTML
at http://www.selisoft.com/en/ahtml/
------------------------------------------------------------------------------------
Note: Im assuming that your script isn't working because you
don't have ASP installed , you can't just get free ASP unless
you feel like hacking the program , javascript and vbscript will
work fine on Abyss , its ASP that you have to worry about. |
|
Back to top |
|
|
mcwilliams132 -
Joined: 27 Jul 2003 Posts: 167 Location: Oshkosh, WI
|
Posted: Mon Jun 21, 2004 6:50 pm Post subject: |
|
|
You should have no problem running ASP as JavaScript on the same page...
No need to jump ship (asp > php) if you're familiar with ASP...you can find the free version of AHTML thoughout the forums here...
ASP is parsed at the server and then the resulting code is sent to the browser.
JavaScript, is (typically) a client side scripting language, meaning that the visitor's browser does the work outlined in the script.
#1 rule : Make sure you declare your scripts language.
Typically I declare the asp pages language at the top of the page - before anything else with:
<%@Language = VBScript %>
If you're going to mix in some JavaScripting...just do it as such - typically within the <head></head> section of your page:
<script language="javascript" type="text/javascript">
/* javascript code goes here */
</script>
This tells the browser that this is javascript and it needs to do the work...the ASP interpreter will ignore this section and pass it to the browser to work on.
Besides that...I'd need to see the page's code and the error that you're getting when served from Abyss to really diagnose the issue.
Another question is, do you have AHTML installed along side abyss? _________________ ::::::::::::::::::::::::::::::::::::::::::::::::::
:: Jon-Paul LeClair
:: http://mcwilliamsworld.com
:: "Lobster sticks to magnet!" |
|
Back to top |
|
|
eaansa -
Joined: 21 Jun 2004 Posts: 2
|
Posted: Mon Jun 21, 2004 6:54 pm Post subject: |
|
|
Thanks. But I noticed that the ASP pages without javascript or vbscript works fine. |
|
Back to top |
|
|
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Jun 21, 2004 9:36 pm Post subject: |
|
|
In that case, you do have ActiveHTML installed. We are going to need to see your code before we can help you figure out what's wrong.
Also, VBScript only works in Internet Explorer (either that, or it just doesn't work in Mozilla). If you aren't using IE, then that's probably why VBScript won't work. _________________ Bienvenidos! |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Jun 24, 2004 4:17 pm Post subject: Re: ASP Page with Javascript Embedded |
|
|
eaansa,
In the ActiveHTML samples, there are some ASP pages that use Javascript and they should work without any problem (such as ahtml/jscript.asp .)
Such an ASP file begins with:
Code: | <%@ LANGUAGE=JScript %> |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|