Hello!
First, I would like to say thank you for your work with Silverstripe. Finally I found something functional, working and still clear enough that a novice was able to understand. Second, even though I am a novice, I would note that to realize almost any answer.
I just have not found the right answers. Well, or just do not understand something :-D
So. The main question concerns the order of execution Ajax in Silverstripe. I found this example [url=http://www.balbuss.com/ajax-with-jquery]http://www.balbuss.com/ajax-with-jquery, and even almost understand how works Form and Ajax. But the question remains:
Some Blog function:
function LatestBlog ($ num = 5) {
$ news = DataObject :: get_one ("BlogHolder");
return ($ news)? DataObject :: get ("BlogEntry", "ParentID = $ news-> ID", "ID DESC", "", $ num): false;
}
apparently, this is an old example
It is clear that here we have the last five blog posts. But like I could get the data using Ajax? Say, by pressing the «Show more» (something like the search results are displayed on this site).
(translated by online-translator)