Wow my reply has been deleted ?
On Wednesday, 21 March 2018 11:59:45 UTC-4, Dan Book wrote: > > Refreshing the page and refreshing the table are two different things. The > latter you would need to do in javascript, ideally with a framework like > vue or react that can handle the ugly details. If you refresh the page, you > only need to have the route provide the subset of the data instead of the > full set when it receives the search term. > > -Dan > > On Wed, Mar 21, 2018 at 11:43 AM, Luc Larochelle <[email protected] > <javascript:>> wrote: > >> Hi everyone, >> >> I built a single page application to display content in a table with >> Mojolicious Lite. This works fine, the first time the data is rendered. >> >> I pass the values through the stash and in my template, I use a for loop >> to go through the structure and display in the web page. >> >> The problem is selecting a subset of the data (a search box for example). >> I don't understand how to pass the values to the stash and refresh the page. >> >> The stash changes with the desired data after a call to a get sub (for >> example get '/search/:expr' ) but it will never render. As if it gets >> rendered twice, since the final result is the whole table being displayed. >> >> What would be the best way to achieve this ? >> >> Please help ... >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Mojolicious" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/mojolicious. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
