$.Ajax won't initiate success function
I'm trying to make a function that loops through an XML file to display the data on a page. However when I try to load the file, the $.Ajax function breaks and nothing happens.
- $(document).ready(
- function(){
- $.ajax({
- url:"portfolio.xml",
- type:"POST",
- dataType:"xml",
- success:loadData,
- error:function(msg){
- alert(msg);
- }
- });
- });
That shouldn't be breaking, but I don't know what's happening.