This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Unterminated String Constant


avatar
error 232
From: -
Unterminated String Constant

When I'm on comments page in news module i got js error: Unterminated String Constant.

Vista Business
IE 7
CT 1.0 Final (Patches applied)

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Unterminated String Constant
avatar
OP 232
From: -
Somehow code get screwed. It fixed now. Thanks alot.
1 Re: Unterminated String Constant
avatar
Editor
0
From: -
I think it was in template news_layout_extended_story in your template set
1 Re: Unterminated String Constant
avatar
OP 232
From: -
I didnt removed anything. Where I can see code, in wich file?
1 Re: Unterminated String Constant
avatar
Editor
0
From: -
Did you remove something?

The code should look like this without the spaces in [ b ] [ /b ] [ quote ] [ /quote]:
<script type="text/javascript">

<!--
function quoteme(username, postdate, quote)
{
window.document.getElementById("commentform").input_message.value =
window.document.getElementById("commentform").input_message.value + "[ b ]Posted by " + username + " on " + postdate + "[ /b ]\\n[ quote ]" + quote + "[ /quote ]\\n";
window.document.getElementById("commentform").input_message.focus();
}
-->
1 Re: Unterminated String Constant
avatar
OP 232
From: -
Yes it is.

<script type="text/javascript">
<!--
function quoteme(username, postdate, quote)
{
window.document.getElementById("commentform").input_message.value =
window.document.getElementById("commentform").input_message.value + "Posted by " + username + " on " + postdate + "\n
Quote:
" + quote + "
\n";
window.document.getElementById("commentform").input_message.focus();
}
-->
</script>
1 Re: Unterminated String Constant
avatar
Editor
0
From: -
Is the quoteme javascript in the page source/output? You can find this out by viewing the page source code and searching for "function quoteme".
1 Re: Unterminated String Constant
avatar
OP 232
From: -
I got that error on frontpage news comment not in admincp.
1 Re: Unterminated String Constant
avatar
Editor
0
From: -
On the edit comment page? Do you get this error also on the "add new story" page after you disable the WYSIWYG editor?
1 Re: Unterminated String Constant
avatar
OP 232
From: -
Is your class_html.php from RC3 or earlier?


Build: 529 Patch: 12
1 Re: Unterminated String Constant
avatar
Editor
0
From: -
Is your class_html.php from RC3 or earlier?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.