Login   Register  
PHP Classes
elePHPant
Icontem

File: javascript/functions_jquery.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of José Filipe Lopes Santos  >  Ticket Calendar  >  javascript/functions_jquery.js  >  Download  
File: javascript/functions_jquery.js
Role: Auxiliary data
Content type: text/plain
Description: Misc Jquery Functions
Class: Ticket Calendar
View the dates of scheduled tickets on a calendar
Author: By
Last change:
Date: 2013-11-26 10:23
Size: 1,137 bytes
 

Contents

Class file image Download
/**
 * Script com diversas funções que usam jquery.
 *
 * Autor: José Filipe Lopes Santos
 * Data de criação: 02-03-2012
 * Data da últ. actualização: 06-03-2012
 */


/**
 * Carrega o calendário (ajax).
 * 
 * @param string params parâmetros do script em causa
 */
function LoadCalendar(params){

	var data = "";
	if (params) data =params;
	
	$.ajax({
		url: "calendario.php",
		type: "GET",
		data: data,
		cache: false,
		error: function (jqXHR, textStatus, errorThrown) { alert(textStatus+" - "+errorThrown); },
		success: function (html) {
			$("#div_calendar")
				.effect("fold",1000)
				.html(html)
				.fadeIn();			
		}		
	});
}


/**
 * Carrega a lista de tarefas para esse dia (ajax).
 * 
 * @param string params parâmetros do script em causa
 */
function LoadTaskList(params){

	var data = "";
	if (params) data =params;
	
	$.ajax({
		url: "tts_agendados_dia.php",
		type: "GET",
		data: data,
		cache: false,
		error: function (jqXHR, textStatus, errorThrown) { alert(textStatus+" - "+errorThrown); },
		success: function (html) {
			$("#div_content")
				.effect("slide",1000)
				.html(html)
				.fadeIn();
		}		
	});
}