skip to Main Content

How do I call PHP code from another file with jQuery ajax?

This is my index.php: <!DOCTYPE html> <html lang="en" > <head> <title>Cassette Decks</title> <link rel="stylesheet" href="css/styles.css"> <meta charset="UTF-8"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="js/scripts.js" ></script> <script> </script> </head> <body> <form role="form" id="attributes" name='attributes' class="cassette_deck_table" > <table id="cassette_deck_params" > <tr> <td colspan='8' > <label…

VIEW QUESTION

Cannot read properties of undefined (reading 'formatDate') – Jquery ajax

What's the problem in my code? Cannot read properties of undefined (reading 'formatDate') editable:true, eventResize:function(event) { console.log(event.start); var start = $.fullCalendar.formatDate(event.start, "YYYY-MM-DD HH:mm:ss"); var end = $.fullCalendar.formatDate(event.end, "YYYY-MM-DD HH:mm:ss"); var title = event.title; var id = event.id; $.ajax({ url:"../Components/calendar/update.php", type:"POST",…

VIEW QUESTION
Back To Top
Search