682 search results

…cors_origins http://127.0.0.1:8000 ``` to ```yaml # compose.yaml mercure: environment: SERVER_NAME: ':80' MERCURE_EXTRA_DIRECTIVES: | cors_origins https://127.0.0.1:8000 ``` The error regarding CORS policy is no longer present. I'm using `turbo_stream_listen("topics"…
…Sometimes it initializes, sometimes it doesn't. The only thing that works for me is to turn off turbo for the page. I haven't found any sensible instructions on how to do it anywhere. So I'm asking here if anyone can help. It…
…make a wrong question. I mean how can I avoid to including this `` block into every page, because I have in my CSS files defines my own style and this block of code is not needed anymore. Thanks ``` .turbo-progress-bar { position: fixed; display: block; …
skocdopolet
skocdopolet
Read Full Comment
…should sounds more familiar and easier. You just write PHP code and LiveComponents core do the JS work for you. With the Turbo Streams - that's something that allow you to dynamically update the page with some response. In short, there might be some overlaps…
…m upgrading to Symfony 7.2 and the CSRF Protection break my form when I submit them in a turbo-frame. When I submit from the full page, everything works well but when I load this turbo-frame in another page or in a modal…
…csrf_protection_controller.js. Now, every form inside a Turbo modal stops working (even though it works fine with a regular request outside the modal). The issue might stem from the `document.addEventListener('submit', function (event) { … })` found in the controller. This event never gets…
sylvaindeloux
sylvaindeloux
Read Full Comment
…via Ajax instead of a full, traditional, page reload submit. So I added the `submitForm` Stimulus action that handles the form via Ajax. These days, I would almost definitely solve this with Turbo (using the native Turbo Ajax form submit or a `` if needed. Cheers!
weaverryan
weaverryan
Read Full Comment
…And now we even got to choose between multiple technologies that do in this direction (live-components, turbo, htmx as the most prominent ones). I am just left with one question. I am using live-components in combination with "SymfonyCasts/dynamic-forms" and it works…
TristanoMilano
TristanoMilano
Read Full Comment
…in templalte /new.html.twig ``` {% block stream_success %} {{ include('swd/admin/organisation-group/_row.html.twig') }} {{ include('_flashes.html.twig') }} {% endblock %} ``` in app.js: ``` import { StreamActions } from "@hotwired/turbo" StreamActions.redirect = function() { const href = this.getAttribute("href") Turbo.visit(href) } ``` It works wonderfully…
creativx007
creativx007
Read Full Comment
…area C) In your JS that handles this action, you read off the `redirect` attribute and redirect there in JS (or more likely, you do a `Turbo.visit(theHref)`. Let me know if this helps! It's a great question. Sorry again about the delay…
weaverryan
weaverryan
Read Full Comment
…question (perhaps I have already asked it in another post) but a few months ago I remember that you had published a recent video course regarding the concept of asset manager which seemed be the last frontier by putting stimulus and turbo on the bench…
pasquale_pellicani
pasquale_pellicani
Read Full Comment
…not what I want. The initialization code is really hardwired to depend on full page refreshes and definitely doesn't play well with the DOM mutation that LiveComponents uses (and that more and more things use, like Turbo 8 morphing). Ideally, as morphing becomes more…
weaverryan
weaverryan
Read Full Comment
…the` voyage/edit.html.twig` template instead of `modalBase.html.twig`, but it fails to redirect in that case. I thought of creating a `redirect_controller.js` to change the` window.location.href` through a turbo-stream, but then I miss the toast notification ... Is…
JonathanP
JonathanP
Read Full Comment
…you're using Stimulus, you can implement your controller's `disconnect()` function and cancel/disable all the things you need. If you're not using Stimulus you'll need to find the right Turbo event to do that https://turbo.hotwired.dev/reference/events Cheers!
MolloKhan
MolloKhan
Read Full Comment
…some delays, not in the row. But actually they are pretty cool thing including Turbo Streams. However it also may be that this is just not your tool, so you can completely ignore them and use only Stimulus and Turbo Drive on your website. Cheers!
…Error: The response (200) did not contain the expected and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.*" Maybe it is my mistake but the problem disappear if I change ID name in `home.page.html.twig`
…then a 2nd will follow... so we can't add any intelligence that would say "please don't remove the flash messages yet". The only ideas I have are: A) Disable Turbo on forms submits where you might know this will happen. This, I admit…
weaverryan
weaverryan
Read Full Comment
…item-list` frame will be emptied for just a moment. I can think of 2 ideas to deal with this: 1) Perhaps you don't need a `turbo-frame` for the `item-list` at all. Perhaps you can just return a stream from your #2…
weaverryan
weaverryan
Read Full Comment
…my stimulus controller I do `this.element.querySelector('#myIdLinkToLoadTurboFrame').click();` Work fine with Firefox, but doesn't work at all with Chrome and Safari. Is it possible to trigger the same action of clicking the data-turbo-frame link but from an stimulus controller ? Cheers!
ThierryGTH
ThierryGTH
Read Full Comment
…wrapped around everything. However, might this be what you're looking for? https://symfonycasts.com/blog/redirect-turbo-frame Basically: In `save()` of your `LiveAction` , instead of redirecting (which you are maybe or maybe not doing), allow the template to re-render, but with a…
weaverryan
weaverryan
Read Full Comment