1
Hello ! I have a MENU and a submenu within each item of this menu.
Every time I click on a menu item, it opens a sub-menu (accordion effect).
There’s a way to make a select
within the database and work with the result of these select, within the JS ?
$(document).ready(function() {
$('#calendar').fullCalendar({});
});
$('#addEvent').click(function() {
//BUSCAR OS DADOS DO BANCO AQUI, PARA USA-LOS ALI EMBAIXO.
$('#calendar').fullCalendar(
'renderEvent',
{
title: 'Novo evento', // <-- Inserir os dados aqui
start: '2016-03-31', // <-- Inserir os dados aqui também
}
);
});
Note: I did not find anything, but worth mentioning. I am using laravel
, I didn’t find anything, but maybe he has something to help with that...
Note: It is not mandatory to be javascript
, but I don’t see how to use php
to insert data into this block.
You need a programming language, php for example, but if you want to do it only in javascript you can use Node.js as the guy just quoted it now.
– War Lock
But is there any way to use PHP to pull the data when I click on the menu ? Because I would need to add the data in the event I showed in the code.
– PlayHardGoPro