| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 
 |     ///////////////////////////////////////
    //// GENERAL REQUESTER
    //////////////////////////////////////
 
    // request
    function exLoad(o, callback)
    {
	if(typeof(o) === 'object' && jQuery.isPlainObject(o))
	{
	    // => appels construit <=
	    if(!o.exModback)
	    {
		// ( appel élémentaire )
		var call = o.getExModule;
		var ExConf = 
		{
		    "window":o.getExTag({tag:'win'}),
		    "action":o.getExTag({tag:'action'}) 
		}
	    }else
	    {
		// ( appel forgé )
		var call = o.exModback;
		ExConf = o;
	    }
	}else
	{
	    // => appels direct <=
	    var call = 'crond';
	    if(o.indexOf('&') >= 0 && o.split('&').length > 0)
	    {
		// appel induit
		var params = new Array();
		var struct = o.split('&');
		var call = struct.shift();
		for(arg in struct)
		{
		    var node = struct[arg];
		    params.push(node.substring(node.indexOf('=')+1, node.length));
		}
 
		ExConf = serialize(params);alert(ExConf);
	    }else
		ExConf = o;
		// appel linéaire
	}
 
	$.ajax(
	{
	    url: "services/"+call+".php",
	    data: ExConf,
	    success: function(data)
	    {
		callback(data);
	    }
	})
    }
 
	// exo crond system
	function micron()
	{
	    exLoad("test3", function(data)
	    {
		//alert(data);
		micron(data);
		//setTimeout(micron(0), 35000);
 
	    });
	}
 
	micron(); | 
Partager