File: WIAdmin/WICore/WIJ/WITopic.js

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WICore/WIJ/WITopic.js  >  Download  
File: WIAdmin/WICore/WIJ/WITopic.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 1,104 bytes
 

 

Contents

Class file image Download
/*****
** WITopic name space
*
*/////////////


var WITopic = {};

WITopic.newTopic = function(event){

event.preventDefault();

		    $('input type="text" id="Topic"').each(function () {
        var text = $(this).val('');
        alert(text);
        		$.ajax({
			url      : "WICore/WIClass/WIAjax.php",
			method   : "POST",
			data     : {
				action : "newTopic",
				newTopic : 1,
				newTopic : text
			},
			success  : function(result){
				$("#result").html(result);
			}
		})
    });

};



		$("body").delegate("#empty", "click", function(event){
		event.preventDefault();

		$.ajax({
			url      : "WICore/WIClass/WIAjax.php",
			method   : "POST",
			data     : {
				action : "addNew",
				adnew : 1

			},
			success  : function(result){
				$("#addNew").html(result);
			}
		})
	})

		$("body").delegate("#empty", "click", function(event){
		event.preventDefault();

		
		$.ajax({
			url      : "WICore/WIClass/WIAjax.php",
			method   : "POST",
			data     : {
				action : "addNew",
				adnew : 1

			},
			success  : function(result){
				$("#addNew").html(result);
			}
		})
	})





For more information send a message to info at phpclasses dot org.