Loading a CSV file using jQuery GET returns the header but no data -


When a 'jQuery' GET 'function is reading a CSV file from a server, I do not get any data When I look at the code using firebug, the gate request is sent to me and the return value is 200 OK. Also, I see that the header is returned correctly, so that the request is definitely made, and the data has been returned. This is what I see in Warhorck. Here the full content of the CSV file has been returned to me as a standard HTTP response.
But actual data is not in my script, Firebug shows an empty response and the 'success' function is never called. what might happen?

Edit: An essential part of the information disappeared from my question. The following code runs on my local machine and starts using the built-in test server by Aptana Studio in Firefox.

  & lt ;! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 Transitional // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; New Web Project & lt; / Title & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Script src = "jquery.js" type = "text / javascript" charset = "UTF-8" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Var CSVData; $ (Document) .ready (function () {$ ("# btnGET"). Click (function () {csvData = $ .ajax ({type: "GET", url: "http: //www.mywebsite. Com /data/sample_file.csv ", data type:" text / csv ", success: function () {warning (" full! "+ CsvData.getAllResponseHeaders ())}})}}}}}) & lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; New web project page & lt; / H1> & Lt; Button id = "btng gt" & gt; GET data & lt; / Button & gt; & Lt; / Body & gt; & Lt; / Html & gt;    

  & lt ;! DOCTYPE HTML Public "- // W3C // DTD HTML 4.01 Transitional // N" "http://www.w3.org/TR/html4/loose.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Title & gt; New Web Project & lt; / Title & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = UTF-8" /> & Lt; Script src = "jquery.js" type = "text / javascript" charset = "UTF-8" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Var CSVData; $ (Document) .ready (function () {$ ("# btnGET"). Click (function () {csvData = $ .ajax ({type: "GET", url: "http: //www.mywebsite. Com / Data / sample_file.csv ", data type:" text / CSV ", success: work (results); warning (" full! "+ CsvData.getAllResponseHeaders ())}});})} }  << head> gt; & lt; body & gt; & lt; h1 & gt; new web project page & lt; / h1 & gt; & gt; button id = " BTNGET "> GET data       

Comments