Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javascript (?) ASP Page Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedJavascript (?) ASP Page Problem

 Post Reply Post Reply
Author
pjpeter View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote pjpeter Quote  Post ReplyReply Direct Link To This Post Topic: Javascript (?) ASP Page Problem
    Posted: 10 May 2005 at 3:15pm
I get the following error when I try to use the instructions to convert a Text Area I have on a Javascript page:
 
"
Error Type:
Microsoft JScript compilation (0x800A03F7)
Unterminated string constant
/stmarks/functions/RTE_functions_common.asp, line 2, column 89
'****************************************************************************************
----------------------------------------------------------------------------------------^
"
 
Right now I am able to use the RTE box to enter posts into my ASP database, but my edit page does not work. My edit page is in Javascript, and my post page is in VBScript. So the VBScript page works fine, but the other gives this error.
 
<%@LANGUAGE="JAVASCRIPT"%> <-- That is @ the top of my edit page, and I use that language in all the code I have made to arrange for the textarea to be able to load and then replace the text in my ASP Database. I would rather not change all my language to VBScript from Javascript if at all possible.
 
The Browser I was using when I got this error was IE.
 
Thank you,
Peter
 
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: 10 May 2005 at 3:51pm
The RTE files are written in VBscript.

If you want to use JScript you will need to convert the entire page to JScript to prevent the errors you are getting.
Back to Top
pjpeter View Drop Down
Newbie
Newbie


Joined: 10 May 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote pjpeter Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2005 at 4:33pm
Ya, I realize that now, but I'm working backwards and converting line by line my Javascript code to VBScript - whatever I can't put into a Javascript Script subset anyway.
 
Wish I'd read the fine print and realized this whole thing was VBScript before I already spent so long integrating it, my ownstupidity.
 
By the way, if anyone knows. I'm having some trouble translating this statement from Javascript to VBScript.
 
Any help would be most appreciated:
 
    MM_editRedirectUrl += ((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + Request.QueryString;
 
So far I have:
 
    MM_editRedirectUrl = MM_editRedirectUrl +((MM_editRedirectUrl.indexOf('?') == -1)?"?":"&") + Request.QueryString
 
But I haven't been able to get further.
 
Thanks,
 
Peter
 
Edit: Nevermind, I completely recoded the page using a different method, it took about 6 hours or so of solid work but my Web Wiz system is finally up. Thanks.
 
I just wish the VBScript notice was a bit larger because I completely missed it.
 


Edited by pjpeter - 10 May 2005 at 10:24pm
Back to Top
 Post Reply Post Reply

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.