slj90 Posted December 4, 2014 Share Posted December 4, 2014 window.setInterval(function(){ s="<?= $lastid ?>"; $.post('../action/updatestream.php',{statusid:s.val()},function(e){ alert(e) }); }, 10000); Why isn't it working? Thanks, Link to comment https://forums.phpfreaks.com/topic/292903-timed-function-within-a-function/ Share on other sites More sharing options...
requinix Posted December 5, 2014 Share Posted December 5, 2014 s is a string, not a jQuery object. Don't .val() it. Link to comment https://forums.phpfreaks.com/topic/292903-timed-function-within-a-function/#findComment-1498583 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.