Replies: 1 comment 1 reply
-
Hi @c999c0 - it might be easier to demonstrate a "Hello world" example on a specific thing that you're trying to achieve, but at its most simple implementation I can think of, you can try this (I am going to assume you'll be using the Backend on a newly-installed instance of Winter CMS) Create a Page in the CMS section
<div class="container">
<a href="#" data-request="onMyAjaxRequest">Do an AJAX request</a>
<div id="result"></div>
</div>
function onMyAjaxRequest() {
return [
'#result' => 'Hello world!',
];
}
Give it a test
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just recently started using Winter CMS and I can see the Ajax documentation:
https://wintercms.com/docs/v1.2/docs/snowboard/introduction
I'm just wondering if anyone knows of an Ajax "hello world" type example using snowboard? I'm not new to web development but are new to Winter CMS.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions