Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
How do I show a pop up with modal? Problem with pop up and select command. FullCalendar.io

I am using FullCalendar.io to create a calendar, I found on the net a code implementing the SQL database that inserts data in the database from prompt. I would like to use modal instead but it doesn't work properly.

<script>
    $(document).ready(function() {
        var calendar = $('#calendar').fullCalendar({

            editable: true,
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            events: 'load.php',
            selectable: true,
            selectHelper: true,

            select: function(start, end, allDay) {
                var title = prompt("Enter Event Title");

                if (title) {
                    var start = $.fullCalendar.formatDate(start, "Y-MM-DD HH:mm:ss");
                    var end = $.fullCalendar.formatDate(end, "Y-MM-DD HH:mm:ss");
                    $.ajax({ **...**

I create a simple modal using bootstrap and I've included bootstrap and jquery. In a simple project, I simply used the command $('#modalID').modal('show') In a really similar code using FullCalendar.io too, they implement the modal simply with that line of code. the only big difference is how the calendar library is loaded. In the other project, the code is really similar except for the document ready function. I tried with a lot of combinations but none of them is working including using javascript to show some HTML styled as hidden (display: none). I need to open a pop up after the command select: What solutions do you suggest to me?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda