Print Page | Close Window

Using functions not working

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=19504
Printed Date: 28 March 2026 at 5:59pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Using functions not working
Posted By: Nalfaren
Subject: Using functions not working
Date Posted: 23 April 2006 at 4:00pm
Hello, i'm having a major problem installing RTE and using functions.
I get the following error in all browsers:
 

HTTP 500.100 - Internt serverfel - ASP-fel
Internet Information Services

Teknisk information (för supportpersonal)

  • Feltyp:
    Kompileringsfel i Microsoft VBScript (0x800A03EA)
    Syntaxfel
    /byalag3/nadmin/ny/functions/RTE_functions_common.asp, line 60
    Private Function RTEenabled()
 
 
With the following code:
<%
call testFunction()
Function testFunction()
%>
<form name="myForm" method="post" action="display_form_submission.asp">
<%
Dim strFormName
Dim strTextAreaName
strFormName = "myForm"
strTextAreaName = "myTextarea"
%>
<!--#include file="RTE_editor_inc.asp" -->
<textarea name="textarea" cols="80" rows="22" id="myTextarea">
Hello world
</textarea>
</form>
 
 
<%
End Function
%>
 
 
But if i remove the function it works perfectly...

<form name="myForm" method="post" action="display_form_submission.asp">
<%
Dim strFormName
Dim strTextAreaName
strFormName = "myForm"
strTextAreaName = "myTextarea"
%>
<!--#include file="RTE_editor_inc.asp" -->
<textarea name="textarea" cols="80" rows="22" id="myTextarea">
Hello world
</textarea>
</form>
 

 
 
Why? whats the problem and how can i solve it.
I have a big .asp file that contains 50 functions containing
different pages in a intranetsolution...
 
Please help me, i have a tight deadline and a meeting tomorrow
when im gonna show the design.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 24 April 2006 at 8:49am
This maybe because you are trying to call a function from within a function and for some reason they are conflicting, but as the error message is not in English it's very difficult for me to know what the actual error is saying.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Nalfaren
Date Posted: 24 April 2006 at 10:34am
Originally posted by -boRg- -boRg- wrote:

This maybe because you are trying to call a function from within a function and for some reason they are conflicting, but as the error message is not in English it's very difficult for me to know what the actual error is saying.
 
I don't know, all the code is above...
The error is in swedish sorry, quick translation:
 
Server error 500
Compilationerror in VBscript  (0x800A03EA)
Syntaxerror
/byalag3/nadmin/ny/functions/RTE_functions_common.asp, line 60
Private Function RTEenabled()


Posted By: WebWiz-Bruce
Date Posted: 24 April 2006 at 10:36am
I'm at a loss why you would get such an error.

The only thing I can think is maybe you have a corrupted file, try reuploaidng the files again.

Also, check that the page is set to use VBScript and not JScript


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Nalfaren
Date Posted: 24 April 2006 at 10:38am
Originally posted by -boRg- -boRg- wrote:

I'm at a loss why you would get such an error.

The only thing I can think is maybe you have a corrupted file, try reuploaidng the files again.

Also, check that the page is set to use VBScript and not JScript
 
Yeah its strange, im actually working with iis and localhost atm.
But that it work when i remove the call and function code. realy
bizarre. I'll try restart windows and iis and check if it works online
instead. Ill post an update soooonish =)
 
Thanks for your time.


Posted By: Nalfaren
Date Posted: 24 April 2006 at 1:04pm
I edited the default.asp that comes along with the download.
You can not create Functions that contain the code? Why, haven't
anyone gotten same problem? I mean that a quite basic commando
and approach?
 
Same error, and i have rebooted and tried it online... :(
 
 
 

Microsoft VBScript compilation error '800a03ea'

Syntax error

/tmp/functions/RTE_functions_common.asp, line 60

Private Function RTEenabled()
The testpage:
 http://www.byalag.se/tmp/default.asp - http://www.byalag.se/tmp/default.asp 


Posted By: Nalfaren
Date Posted: 24 April 2006 at 1:12pm
Same error as some people in this thread:
http://forums.webwiz.net/forum_posts.asp?TID=13928&PN=1 - http://forums.webwiz.net/forum_posts.asp?TID=13928&PN=1
 
Has it been resolved or is it still an issue?
I've tried Function test() and Sub test(), same problem when placing
the RTE commands in theese. Do i realy need to make 60+ documents
and placing code in each file? i usually put all my files in one master page
and loads the different designs such as header and footer from same file...
 


Posted By: WebWiz-Bruce
Date Posted: 24 April 2006 at 5:03pm
There is no logical reason why you would get this error.

The same function is used in this forum and is called from within functions other functions without any problems, so I can't even replicate the error to find a solution.

The only thing I can think is to search through MSDN to see why you would get an error when calling a function from another function.

There maybe some strange bug in VBscript that this error happens when you set different page encodings or something for the different files when calling a functions from within another function.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: WebWiz-Bruce
Date Posted: 24 April 2006 at 5:07pm
I think I may know the problem, you are using script blocks within your function, eg mixing ASP and HTML within the function.

Try changing the entire function to ASP using response.write to output the HTML, if that fails, try placing the code from the RTE_editor_inc.asp include file directly into your function.

I have never tried calling an include file containing a function from within a function as I have always believed it to be bad programming practice, and so it maybe this reason why you are getting the error.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net