javascript - PHP Ajax load file with jQuery inside file -


i loading php file using ajax below works great except want able load javascrip/jquery items within file function on main index page.

       prices();            function prices()         {             $.ajax({                type: "get",                url: "inc/load_prices.php",                cache: false,                success: function(response){                   $("#prices").hide().html(response).fadein(500);                 }            });         }     setinterval(prices, 600000);  

inside load_prices.php have stock ticker type output works fine outside ajax call using below. when loading contact via ajax wont trigger webticker.min.js file , wont render properly.

<!-- if loading without ajax ticker works fine -->     <script src="js/jquery.webticker.min.js"></script>         <script>             $("#ticker").webticker({                  duplicate:true,                 hoverpause:false,             });          </script> 

how allow contents of prices() ajax function render when needed reference jquery?

not sure in load_prices.php

src="../js/jquery.webticker.min.js"

as both in different directory


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -