Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble Loading CSV content as opposed to Downloading
    primarykey
    data
    text
    <p>Good Afternoon, </p> <p>With Yahoo Finance, following the following link, along with some convenient URL tags, will customize a downloadable CSV with nearly whatever stock information you like. The URL will automatically download a CSV to wherever your downloads default:</p> <p><a href="http://finance.yahoo.com/d/quotes.csv?s=" rel="nofollow">http://finance.yahoo.com/d/quotes.csv?s=</a>"GOOG"+&amp;f="s"</p> <p>I, however, do not want to download this content on to my computer, I would like to download it into a webpage. Here is what I've been toying with:</p> <p>The JSP, index.jsp:</p> <pre><code>&lt;!DOCTYPE JSP&gt; &lt;html&gt; &lt;head&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"&gt;&lt;/script&gt; &lt;script src="Scripts/script.js"&gt;&lt;/script&gt; &lt;style&gt; #Generic_Container { height:500px; width:500px; background-color:transparent; } #Link1 { width:200px; height:200px; position:absolute; top:5px; left:5px; background-color:blue; color:white; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="Generic_Container"&gt; &lt;a href='http://finance.yahoo.com/d/quotes.csv?s="GOOG"+&amp;f="s"' id='Link1'&gt;&lt;/a&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and the related file, script.js (poor naming conventions, I realize; however, this example is for inquisitive purposes alone):</p> <pre><code>$('document').ready(function() { $('#Link1').click(function(event) { event.preventDefault(); $('#Link1').load('http://finance.yahoo.com/d/quotes.csv?s="GOOG"+&amp;f="s"'); }); }); </code></pre> <p>this should prevent the download of the file from the site, and instead load the content into the frame, but I must be doing something wrong. I'm also open to alternative methods of getting this done, if I'm indeed doing something not-so-logical..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload