Does anyone know how to call a controller in a view using ajacks?
I have got an umbraco project which i call the controllers for it via mvc. It works fine, but when i want to use ajax i get this error:
Object not found.... the code it:
function DoPostcodeLookup(postalCode) {
//var postalCode = $('#comppostcodelookup').val();
alert(postalCode);
$.ajax({
type: 'GET',
url: '@Url.RequestContext.HttpContext.Request.Url.GetLeftPart(UriPartial.Authority)/Employer/GetPostalCodeAddresses',
dataType: 'json',
cache: false,
data: { postalCode: postalCode },
success: function (data) {
if (data.Success) {
alert("Data has arrived");
$.each(data.Addresses, function () {
Ajax calls not working with Umbraco?
Hello,
Does anyone know how to call a controller in a view using ajacks? I have got an umbraco project which i call the controllers for it via mvc. It works fine, but when i want to use ajax i get this error: Object not found.... the code it:
function DoPostcodeLookup(postalCode) { //var postalCode = $('#comppostcodelookup').val(); alert(postalCode); $.ajax({ type: 'GET', url: '@Url.RequestContext.HttpContext.Request.Url.GetLeftPart(UriPartial.Authority)/Employer/GetPostalCodeAddresses', dataType: 'json', cache: false, data: { postalCode: postalCode }, success: function (data) { if (data.Success) { alert("Data has arrived"); $.each(data.Addresses, function () {
is working on a reply...