<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - retrieving String value using scriptlet within js code</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Tue, 18 Jun 2013 02:26:28 -0400</pubDate>


    <item>

        <title>Escape your newline</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=51677</link>

        

        
            <description><![CDATA[If you view source in your browser, you will likely see that the java newline gets rendered into the html, causing invalid javascript.

If you escape the backslash on your newline, it will likely work.


alert('&lt;%=x%&gt;');]]></description>
        

        <pubDate>Sun, 02 Nov 2008 12:44:36 -0500</pubDate>

        

        <jf:creationDate>Sun, 02 Nov 2008 12:44:36 -0500</jf:creationDate>
        <jf:modificationDate>Sun, 02 Nov 2008 12:44:36 -0500</jf:modificationDate>
        <jf:date>Nov 2, 2008</jf:date>
        <jf:author>Brandon India</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>retrieving String value using scriptlet within js code</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=51677</link>

        

        
            <description><![CDATA[Hello-

A js error "unterminated string literal" occurs when writing the following lines


alert('&lt;%=x%&gt;');

while it doesn't when using a pure js code like the following

var x = "x\ny";
alert(x);

can anybody help?

thank you]]></description>
        

        <pubDate>Sun, 02 Nov 2008 06:13:27 -0500</pubDate>

        

        <jf:creationDate>Sun, 02 Nov 2008 06:13:27 -0500</jf:creationDate>
        <jf:modificationDate>Sun, 02 Nov 2008 06:13:27 -0500</jf:modificationDate>
        <jf:date>Nov 2, 2008</jf:date>
        <jf:author>m m</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>



</channel>
</rss>

