Hi Akeem.
I would probobly prefer to return a ViewModel as JsonResult to my view. Looking your above ActionResult, it looks like you are returning the complete dynamic model to the view. It´s probobly better to return a viewmodel with the properties that you want to use in the front end.
Umbraco Ajax load more onclick of a button using surfacecontroller
Please can anyone help me . I am trying to use Ajax for to load more calendar event thats coming from my umbraco backend . from this code below
My SmartController is located inside App_Code folder . Below is the Ajax am working on
});
Please help me somebody ....
Hi Akeem. I would probobly prefer to return a ViewModel as JsonResult to my view. Looking your above ActionResult, it looks like you are returning the complete dynamic model to the view. It´s probobly better to return a viewmodel with the properties that you want to use in the front end.
Se my response to this question for a working ajax example: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/75559-pulling-child-node-content-via-ajax-or-some-other-method
Hi Akeem,
Can you post the entire code of your controller ? If it's a surface controller and the name is SmartSurfaceController then the url should be :
/umbraco/SmartSurface/LoadEvent
Have a look at the documentation of Surface controllers and especially the part about routing :
https://our.umbraco.org/documentation/Reference/Routing/surface-controllers
Dave
is working on a reply...