[jQuery] Replace newline char with comma using jquery

[jQuery] Replace newline char with comma using jquery


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