Category : jquery

I have this error, but I don’t know why, the code seems correct… templatesbase.html.twig <head> <meta charset="UTF-8"> <title> {% block title %}Welcome! {% endblock %} </title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <link href="{{ asset(‘css/star-rating.css’) }}" media="all" rel="stylesheet" type="text/css"/> {% block stylesheets %}{% endblock %} <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="{{ asset(‘js/star-rating.js’) }}" type="text/javascript"></script> </head> templatesproductindex.html.twig <script> jQuery(document).ready(function ..

Read more

I am working on Symfony 4.4. To refresh a table, users select three options with an input: InProgress Finished All Then they must press a validate button. I want to improve the use of this page by automating the refresh of the table. Currently on my model I have AJX which allows me to retrieve ..

Read more

I used the last answer from this question to Add Lines to my Poll which i am creating in Symfony but the string i am appending is a bit longer then the one in the answer (‘<div><input type="text" name="mytext[]"/><a href="#" class="delete">Delete</a></div>’) Mine looks like that (with twig, u don’t have to understand everything in there, ..

Read more

I’m developing with Symfony 5 and I’m receiving two times the response header ‘Date’ in my Homepage: Cache-Control: no-cache, private Connection: close Content-Type: text/html; charset=UTF-8 Date: Wed, 02 Dec 2020 10:21:57 GMT Date: Wed, 02 Dec 2020 10:21:57 GMT Host: localhost:8000 X-Debug-Token: a91210 X-Debug-Token-Link: http://localhost:8000/_profiler/a91210 X-Powered-By: PHP/7.4.9 X-Robots-Tag: noindex This makes my code not working ..

Read more

I’m trying to add a carousel with a collection of slides but I can’t style my embedded forms. My prototype skip some class attributes in my form. Documentation here My CarouselType: public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add(‘slides’, CollectionType::class, [ ‘entry_type’ => SlideType::class, ‘allow_add’ => true, ‘allow_delete’ => true, ‘prototype’ => true, ‘by_reference’ => ..

Read more