Jump to content

JQuery: Cant Find Error with Code


savagenoob

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/257072-jquery-cant-find-error-with-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.