title: How do I use jQuery new advanced ticker to read text from text file?
body: <p>I'm trying this code now in my website:</p>
  
  <pre><code>&lt;script&gt;
  var file = "http://newsxpressmedia.com/files/theme/test.txt";
  function getFile(){
      $.get(file,function(txt){
          var lines = txt.responseText.split("\n");
          for (var i = 0, len = lines.length; i &lt; len; i++) {
              save(lines[i]);
            &lt;ul class="newsticker"&gt;lines[i]&lt;/ul&gt;
          }
      }); 
  }
  &lt;/script&gt;
  &lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://newsxpressmedia.com/files/theme/jquery.newsTicker.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  $('.newsticker').newsTicker({
      row_height: 48,
      max_rows: 2,
      speed: 6000,
      direction: 'up',
      duration: 400,
      autostart: 1,
      pauseOnHover: 0
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But I don't see anything. The text suppose to scroll up.</p>
  
  <p>In the original the code was:</p>
  
  <pre><code>&lt;ul class="newsticker"&gt;
      &lt;li&gt;Etiam imperdiet volutpat libero eu tristique.&lt;/li&gt;
      &lt;li&gt;Curabitur porttitor ante eget hendrerit adipiscing.&lt;/li&gt;
      &lt;li&gt;Praesent ornare nisl lorem, ut condimentum lectus gravida ut.&lt;/li&gt;
      &lt;li&gt;Nunc ultrices tortor eu massa placerat posuere.&lt;/li&gt;
  &lt;/ul&gt;
  &lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://newsxpressmedia.com/files/theme/jquery.newsTicker.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  $('.newsticker').newsTicker({
      row_height: 48,
      max_rows: 2,
      speed: 6000,
      direction: 'up',
      duration: 400,
      autostart: 1,
      pauseOnHover: 0
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>What am I doing wrong ? I checked I the file test.txt exist and I can read it but the code :</p>
  
  <pre><code>&lt;script&gt;
      var file = "http://newsxpressmedia.com/files/theme/test.txt";
      function getFile(){
          $.get(file,function(txt){
              var lines = txt.responseText.split("\n");
              for (var i = 0, len = lines.length; i &lt; len; i++) {
                  save(lines[i]);
                &lt;ul class="newsticker"&gt;lines[i]&lt;/ul&gt;
              }
          }); 
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>Is not working I don't see anything. 
  Tried to add in the FOR LOOP the line: </p>
  
  <pre><code>&lt;ul class="newsticker"&gt;lines[i]&lt;/ul&gt;
  </code></pre>
  
  <p>But I guess it's wrong.</p>
  
  <p>EDIT**</p>
  
  <p>The code is now look like this:</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://newsxpressmedia.com/files/theme/jquery.newsTicker.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  $(function() {
      var file = "http://newsxpressmedia.com/files/theme/test.txt";
      $.get(file, function (txt) {
          var lines = txt.responseText.split("\n");
          $ul = $('&lt;ul class="newsticker" /&gt;');
          for (var i = 0, len = lines.length; i &lt; len; i++) {
              //save(lines[i]); // not sure what this does
              $ul.append('&lt;li&gt;' + lines[i] + '&lt;/li&gt;');
          }
          $ul.appendTo('body').newsTicker({
              row_height: 48,
              max_rows: 2,
              speed: 6000,
              direction: 'up',
              duration: 400,
              autostart: 1,
              pauseOnHover: 0
          });
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But it does nothing i don't see any text at all.</p>
  
  <p>EDIT**</p>
  
  <p>Opend the console dev on my website at: <a href="http://newsxpressmedia.com/" rel="nofollow">http://newsxpressmedia.com/</a>
  And i see this text in the console:</p>
  
  <p>6
  Consider using 'dppx' units instead of 'dpi', as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: only screen and (-webkit-min-device-pixel-ratio: 2), not all, not all, not all, only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) (index):1
  Uncaught TypeError: Cannot call method 'split' of undefined (index):101
  event.returnValue is deprecated. Please use the standard event.preventDefault() instead.</p>