savagenoob Posted February 13, 2012 Share Posted February 13, 2012 I wrote this: <script type="text/javascript" charset="utf-8"> function getFiles(){ var agencyid = "<?php echo $agencyid;?>"; var carrier = "<?php echo $carrier;?>"; $.ajax({ type: "POST", url: "ajax/getfiles.php", data: "carrier="+ carrier + "&agencyid="+agencyid, success: function(html){ $("#filelist").append(html); } }); } $(document).ready(function(){ setInterval(getFiles(), 30000); } </script> and am getting firebug error that says: "missing ) after argument list", which points to the closing of the Ajax call, }); Dont know what I am doing wrong. Quote Link to comment https://forums.phpfreaks.com/topic/257072-jquery-cant-find-error-with-code/ Share on other sites More sharing options...
savagenoob Posted February 13, 2012 Author Share Posted February 13, 2012 Nevermind. I see it. Dummy. Quote Link to comment https://forums.phpfreaks.com/topic/257072-jquery-cant-find-error-with-code/#findComment-1317830 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.