-1
Good, I am building a Dashboard where I want ,while refreshing my page, it triggers the 'Notification' controller that will return me values from a database.
My question is, how can I trigger the controller by refreshing the page? My idea is to use the onload event but I don’t know how I do the function to trigger the controller.
If anyone can help me, I’d appreciate it!
The controller’s responsibility is to respond to an HTTP request. If you want to trigger it, just send a request to the URL it will have; you can do this with asynchronous requests in the browser.
– Woss
Therefore, ajax?
– Marco Silva