jQWidgets Forums
Forum Replies Created
-
Author
-
May 31, 2017 at 11:11 am in reply to: Problem of update Scheduler Problem of update Scheduler #93990
Hello Histro,
I used AJAX to send data on php script in order to insert data update on my database.
For GRID is ok but not SCHEDULER.Please, found below a code of Updated Data :
$(“#scheduler”).on(‘appointmentChange’, function (event)
{
var args = event.args;
var appointment = args.appointment;<?php
$iduser = $_SESSION[‘id_users’];
?>
var IDUSER = <?php echo $iduser; ?>;
var IDCP = appointment.id;
var FROM = appointment.from;
var TO = appointment.to;
var DESCRIPTION = appointment.description;
var LOCATION = appointment.location;
var SUBJECT = appointment.subject;
/********* OK VARIABLE result correctly *********/
// alert(FROM);
// alert(TO);
// alert(DESCRIPTION); // Description
// alert(LOCATION); // Collaborateur
// alert(SUBJECT); //typeConges// var row =
// {// IDCP: IDCP,
// IDUSER: IDUSER,
// FROM: FROM,
// TO: TO,
// DESCRIPTION: DESCRIPTION,
// LOCATION: LOCATION,
// SUBJECT: SUBJECT// };
// var dataString = row;
$.ajax(
{
type: “POST”,
url: “saveTESTcp.php”,
data: {IDCP: IDCP, IDUSER: IDUSER, FROM: FROM, TO: TO, DESCRIPTION: DESCRIPTION, LOCATION: LOCATION, SUBJECT: SUBJECT},
cache: false,
});<?php
// $iduser = $_SESSION[‘id_users’];
// $sql = “INSERT INTO cp (
// id_users, nom, prenom, datestart, datestop, typeCP, demiJournee)
// VALUES (
// ‘$iduser’, ‘$newActivityCHARGE’, ‘$newActivityTITLE’, ‘$newActivityDESCRIPTION’,
// NOW(), NOW(), ‘$statusActif’, ‘$iduser’, ‘$resultIDproject’, ‘$resultIDclient2’)”;
// $addNEWChargeCollab = mysql_query($sql);
?>console.log(“appointmentChange is raised”);
});But on AJAX :
$.ajax(
{
type: “POST”,
url: “saveTESTcp.php”,
data: {IDCP: IDCP, IDUSER: IDUSER, FROM: FROM, TO: TO, DESCRIPTION: DESCRIPTION, LOCATION: LOCATION, SUBJECT: SUBJECT},
cache: false,
});I have this error message on console debug :
TypeError: x is undefined[En savoir plus] jqxdate.js:7:20382
f.jqx.date/r.subtract http://localhost/axio_internalSite/jqwidgets/jqxdate.js:7:20382
e http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:4:23990
Vc http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:4:23875
Vc http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:4:23898
m.param http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:4:24236
ajax http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:4:20193
<anonyme> http://localhost/axio_internalSite/icalendar.php:373:8
dispatch http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:8384
add/r.handle http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:5122
trigger http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:7535
trigger/< http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:15396
each http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:2:2971
each http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:2:833
trigger http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:15375
_raiseEvent http://localhost/axio_internalSite/jqwidgets/jqxscheduler.js:7:50790
initContent/< http://localhost/axio_internalSite/jqwidgets/jqxscheduler.api.js:7:73811
dispatch http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:8384
add/r.handle http://localhost/axio_internalSite/jqwidgets/scripts/jquery-1.11.1.min.js:3:5122Have you got please a tutoriel to insert the new data updated on SCHEDULER Tools?
Or a support of my problem.
Thanks
January 4, 2016 at 8:36 am in reply to: [PIE CHART] with PHP/MySQL — Problem display chart [PIE CHART] with PHP/MySQL — Problem display chart #80008Hello,
This is more complicated to give you a Data because my data source is extracted by the SQL request.
But an overview about the data :
Clos 107
Malf 1
Reject 9
Waiting 1
Waiting Input 4Thanks in advance.
Regards and Happy New year.
CocoDecember 30, 2015 at 7:34 pm in reply to: [PIE CHART] with PHP/MySQL — Problem display chart [PIE CHART] with PHP/MySQL — Problem display chart #79950Hello,
Thanks for your feedback.
Yes, Datafield is commented but if I de-commented the “DataField” parameters, I have the same result on my browser. I think the problem does not providedThanks in advance.
Regards
Coco -
AuthorPosts