-
Notifications
You must be signed in to change notification settings - Fork 0
/
testag.php
55 lines (38 loc) · 874 Bytes
/
testag.php
1
2
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
<?php
$test =<<<POV
<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4");
// Usamos este para el swfoject?
google.load("swfobject", "2.2");
google.setOnLoadCallback(
function()
{
loadIni();
});
function loadIni()
{
jQuery.noConflict();
loadAgenda();
}
function loadAgenda()
{
jQuery.getJSON('/laagenda.php', function(data)
{
if(typeof data == 'object')
{
if(typeof data.agenda != 'undefined')
{
jQuery('#agenda').html(data.agenda);
var st = setTimeout(function(){loadAgenda();}, 5000);
}
}
});
}
</script>
<div id="agenda">
</div>
<input type="button" onclick="loadAgenda();" value="click" />
POV;
print $test;
?>