When append the javascript in html using jquery
<pre><code>$.ajax({   
                 url: "sub_template5_js.php?content_id="+content_id,  
                 dataType: 'html',
                 success: function(data){  
                    data = data.replace( new RegExp("block1", 'g'), block_id_replace );
                     data = data.replace( new RegExp("&lt;//script&gt;", 'g'), '' );
                    data = data.replace( new RegExp("&lt;script&gt;", 'g'), '' );
                    alert(data);
                    $("#template_ipad script").empty;
                    $("#template_ipad script").append(data);
                }    
         });
</code></pre>

<p>Above script when i alert the data it's showing some thing like this </p>

<pre><code>imagePath=$prev.find('img').map(function(){
                                    return this.src.replace(/^.*[\\\/]/, '');
                                    }).get();
        imagePath = "images/"+imagePath;
</code></pre>

<p>after append</p>

<pre><code>imagePath=$prev.find('img').map(function(){
                                    return this.src.replace(/^.*[\\\/]/, '');
                                    }).get();
        imagePath = "images/" imagePath;
</code></pre>

<p>u can see above code after append <strong>'+'</strong> is missing plz help me</p>

<p>*<em>Before *</em></p>

<p>imagePath = "images/"+imagePath;</p>

<p>*<em>After *</em></p>

<p>imagePath = "images/" imagePath;</p>

<p>Thank You</p>
