jquery - Dynamic insertion of text file contents within HTML -


basically trying accomplish personal bit of code hobby.

the goal able read file contains single line displays listening changes songs without interaction myself. preferably i'd able scroll text field contains song name more thrilled formattable text there.

currently i've hit roadblock because not savvy (shocked pc hasn't caught fire far. . .) when comes programming.

what have far (sorry terrible hack job):

<html>   <head>   <style>       body {           background-color: rgba(0, 0, 0, 0.65);           white-space: nowrap;           overflow: hidden;           margin: 0px 0px 0px 0px;       }       p.ex1 {           font:22px, arial, sans-serif;           color:rgb(255, 255, 255);       }     </style>   <script type="text/javascript" src="jquery.js"></script>   <script type="text/javascript">     setinterval('read',3000);     function read(){         jquery.get('songplayback.html',         function(data){$('.contents').html(data);}         )         }   </script>           </head>  <body>     <p class="ex1">     playing:<br>     <div id="contents"></div>     </p>  </body> </html> 

i suspecting major issue of is run locally , i'm not sure if possible(?), have been reading quite bit how js doesn't run locally security reasons? i'm crapping on code. have stored jquery.js in same dir html file in addition "songplayback.html" file.

i have used <object> house text before couldn't update on song (file) change.

in order work get or post request using jquery need server handle type of requests. must install wamp http://www.wampserver.com/en/#download-wrapper or xammp http://www.apachefriends.org/en/xampp.html. run code using of these application.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -