Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Using functions not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedUsing functions not working

 Post Reply Post Reply Page  12>
Author
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post Topic: Using functions not working
    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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post 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()
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Nalfaren View Drop Down
Newbie
Newbie


Joined: 23 April 2006
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Nalfaren Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2006 at 1:12pm
Same error as some people in this thread:
 
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...
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.