Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error: Private Function RTEenabled()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedError: Private Function RTEenabled()

 Post Reply Post Reply Page  12>
Author
El Tato View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2005
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote El Tato Quote  Post ReplyReply Direct Link To This Post Topic: Error: Private Function RTEenabled()
    Posted: 21 February 2005 at 2:53pm
Hello.
 
I have a problem when I put RTE3.0 in one textarea.
 
IE6 gives me this error:
 
----------------------------------------------- 

Microsoft VBScript compilation error '800a03ea'

Syntax error

/adm/functions/RTE_functions_common.asp, line 60

Private Function RTEenabled()
--------^
----------------------------------------
I don't know what's happening
Can anybody help me?
 
Back to Top
dj1811 View Drop Down
Newbie
Newbie


Joined: 11 February 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj1811 Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2005 at 4:17pm

There is nothing wrong with the code in RTE_functions_common. (presuming you have not edited the file).

The problem is elsewhere.  Maybe you could post the code for the textarea?  If you call a function from inside a loop it could give the error you describe.
Back to Top
El Tato View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2005
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote El Tato Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2005 at 5:24pm
The textarea is into a 'Do While', but it loop only once. 
Back to Top
El Tato View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2005
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote El Tato Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 6:26am
The code that gives me error is:
 
<form method=post action="not_modificar3.asp">
<% id=Request.Form("id")
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT news.* FROM news WHERE id LIKE '" &  id  & "' "
rs.Open strSQL, conn, 3

Do While NOT rs.EOF
%>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
  <tr >
    <td align=right>
     <p class="normal" > Id.:</p>
 </td>
 <td>
     <%=rs("id")%><input type=hidden name="id" value="<%=rs("id")%>">
 </td>
  </tr>
  <tr>
    <td align=right valign=top>
     <p> Cuerpo:
 </td>
 <td>
  <%
'----------------------------------------------------------------------------------------------
'The following onload event needs to be placed into the body tag for the web page you
'are placing the RTE into to initialise the Javascript for the Web Wiz Rich Text Editor (RTE):-
'OnLoad="initialiseWebWizRTE();"

'The following needs to be placed on the line above the textarea that you wish to be
'replaced with the Web Wiz Rich Text Editor (RTE).
'----------------------------------------------------------------------------------------------

Dim strFormName
Dim strTextAreaName
'Edit the intilised variables below to put in the name of your textrea's ID and the name
'of the form the textarea is within
'Name of the HTML form the textarea is within
strFormName = "myF"
'ID tag name of HTML textarea being replaced
strTextAreaName = "cuerpo"
'----------------------------------------------------------------------------------------------
%>
<!-- include the Web Wiz Rich Text Editor -->
<!--#include file="RTE_editor_inc.asp" -->
  
  
  <textarea class="TextBox" name="cuerpo" id="cuerpo" rows="20" cols="100">
  &lt;!-- Pre-filled textarea content --&gt;
  <%=cuerpo%>
  
  </textarea>
  <%
  '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
  If blnAbout Then
   Response.Write("<br /><span class=""text"" style=""font-size:10px"">Powered by <a href=""
http://www.richtexteditor.org"" target=""_blank"" style=""font-size:10px"">Web Wiz Rich Text Editor</a> version " & strRTEversion)
   Response.Write("<br />Copyright &copy;2002-2005 <a href=""
http://www.webwiz.net"" target=""_blank"" style=""font-size:10px"">Web Wiz Guide</a></span>")
  End If
  '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******
  %>
 </td>
  </tr>
  <tr>
    <td align="center">
      <input class="boton2" type="submit" value="Modificar">
 </td>
  </tr>
</table>

<%
rs.MoveNext
Loop
'Close Server Objects
rs.Close
Set rs = Nothing
Set conn = Nothing
%>

Back to Top
dj1811 View Drop Down
Newbie
Newbie


Joined: 11 February 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj1811 Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 12:21pm

For testing purposes:

Change the line:
 
  Do While NOT rs.EOF

to:
 
  If NOT rs.EOF
 
Change the lines:
 
  rs.MoveNext
  Loop
 
to:
 
  END IF
 
If you only should be looping once that will work I believe.
 
You said this will loop only once, but I wonder if that is the case?  The SQL looks as though it could return multiple rows because you use "LIKE".  To test if your SQL is returning multiple rows you may want to replace your current loops with something like this:
 
IF rs.EOF THEN
   Response.Write "no records found"
ELSE
   rs.MoveFirst
   DO UNTIL rs.EOF
        Response.Write rs.Fields("id") & "<BR>"
        rs.MoveNext
   LOOP
END IF
 
If you get more than one row, you know the problem.
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: 23 February 2005 at 1:01pm
The Web Wiz RTE can only have one per page.

By placing it into a loop you are trying to place mutiple RTE's onto the same page.

So even if you do get past the VB Script error the RTE will not work.

You need to remove the RTE from the loop and have only one on the page.
Back to Top
El Tato View Drop Down
Newbie
Newbie
Avatar

Joined: 21 February 2005
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote El Tato Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2005 at 1:51pm
Thank you veru much to both.

I finally have put the RTE out of the Loop (storing the results of the recordsets in variables), and now its works well.




Back to Top
Woschkin View Drop Down
Newbie
Newbie


Joined: 25 February 2005
Location: Turkey
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Woschkin Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2005 at 4:46pm
Is there any way to use the include in a sub proc. ?
 
Thanks ...
 
P.S.: This is the most powerful (free) editor i have ever seen. Congrat.s guys . God bless you Smile
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.