XModPro

Ajax 500 internal error

Harry Allan Harry Allan posted May 15, 2015
Active May 19 · Viewed 2393 times

Hi,

I followed the tutorial here:
http://dnndev.com/Learn/Guide/Article/Using-AJAX-w...


I have selected my own connection string and queries and changed a few little things and they all work and are named correctly but I'm getting "

POST http://mywebsite.com/DesktopModules/XModPro/Feed.... 500 (Internal Server Error)" in the browser console whenever the ajax is called on the dropdown.

So what I would like to know is the url I entered in my Ajax correct and the pid?

<xmod:jQueryReady>

$('#ddl-country').change(function(){

var parentId = $(this).val();

$.ajax( {

url: '/DesktopModules/XModPro/Feed.aspx',

type: 'POST',

contentType: 'application/x-www-form-urlencoded; charset=utf-8',

dataType: 'html',

data: {

"xfd" : "excursionsList1",

"pid" : 0,

"parent" : parentId

},

success: function(data) {

$('#regions-list').html(data).show();

},

error: function(data){

alert("failed to post");

},

});

});

</xmod:jQueryReady>

I also noticed that the actual feed gets saved here:

/Portals/_default/XModPro/Feeds/0

Many thanks

9 Replies

Loading replies...