PHP Classes

File: example/sys.js

Recommend this page to a friend!
  Classes of Daniel Alan Guerrero Matamoros   JSON Schedule creator   example/sys.js   Download  
File: example/sys.js
Role: Auxiliary data
Content type: text/plain
Description: JS for send and receive data from the controller.php
Class: JSON Schedule creator
Manage event time schedules stored in JSON files
Author: By
Last change:
Date: 8 years ago
Size: 705 bytes
 

Contents

Class file image Download
var doc = "controller.php"; $(document).ready(function(){ $("#send").click(function(){ var data = $("#form").serialize(); $.mobile.loading("show", { text: "Loading data", textVisible: true, theme: "b", textonly: false, html: "" }) $.post(doc, data).error(function(){ $("#msg").html("Connection error"); }).success(function(dato){ $("#msg").html("Data loaded"); $("#data").html(dato.trim()); }) setTimeout(function(){ $.mobile.loading("hide"); }, 5000); }) })