Support the ongoing development of Laravel.io →
posted 9 years ago
Views Blade
Last updated 2 years ago.
0

I'm currently writing an application which is doing something similar but I'm using Angular JS which has it's own views/partials which get loaded into the specified region in the page. The additional benefit is that if you make a change to a form field etc it is automatically updated between the model and the view.

Last updated 9 years ago.
0

There is no "clever" way, a simple ajax call to a controller method that returns your HTML which can be inserted back into the DOM is the most obvious way. As @ghodder mentioned, if this is an application wide requirement and will be needed a lot you are better combining Laravel with one of the many "one page" javascript libraries such as emberjs or angularjs where Laravel is merely an API.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tomcam tomcam Joined 24 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.