PHP Classes

File: _smvc/js/email.js

Recommend this page to a friend!
  Classes of Bill Rocha   SMVC   _smvc/js/email.js   Download  
File: _smvc/js/email.js
Role: Auxiliary data
Content type: text/plain
Description: Pasta para arquivos javascript
Class: SMVC
MVC framework implementation
Author: By
Last change:
Date: 15 years ago
Size: 1,008 bytes
 

Contents

Class file image Download
// JavaScript Document var thisServer="http://intranet.gms.com.br/portal/email/"; function loader(matricula){ $("#esperar").fadeIn(); $.ajax({ type: "POST", url: thisServer+"ajax/listar/"+matricula, data: "matricula="+matricula, dataType: "html", success: function(msg){$("#dados_func").html(msg); } }); $("#esperar").fadeOut(); } $(document).ready(function() { $("#pesquizar").click(function(){ if($("#pesquizar_text").val()==""){alert("Digite algum texto para a pesquiza!");return false} $("#esperar").fadeIn(); $.ajax({ type: "POST", url: thisServer+"ajax/buscar", data: "nome="+$("#pesquizar_text").val(), dataType: "html", success: function(msg){$("#direita").html(msg); } }); $("#esperar").fadeOut(); }); $("#pesquizar_text").keypress(function(event){if(event.keyCode==13){$("#pesquizar").click();}}); $("#pesquizar_text").keyup(function(){if(($("#pesquizar_text").val()).length >=3){$("#pesquizar").click();}}); });