That code that you posted is replacing a newline with nothing - the comma is BETWEEN the parameters and is not one of them

Try csvString=csvString.replace('\n',',');

Nitin Sawant wrote:
Hello frendz,
         I'm trying to replace newline char frm Google finance csv
file with comma but its not happening pls help.

http://finance.google.com/finance/historical?q=GOOG&startdate=May+1%2C+2009&enddate=May+5%2C+2009&start=225&num=25&output=csv

I'm using following code

csvString=csvString.replace('\n','');


I think there is some platform newline char issue.

how to do this using jquery?

pls help
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.35/2124 - Release Date: 05/20/09 06:22:00


Reply via email to