ok, no flash this time.
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Sample Cross-Domain XHR Implementation</title>
<script
src="http://www.server4business.com/forsexvideo/javascript/AJS.js"
type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var loadJSONDocFAD = function(url, data){
this.url = url;
this.data = data;
this.addCallback = function(func, instance_name){
this.callback = eval(func);
this.url =
this.url+"&callback="+instance_name+".call";
var script =
AJS.SCRIPT({"type":"text/javascript",
"charset":"utf-8", "src":this.url}, null);
var container =
AJS.DIV({"id":"contentcontainer"}, script);
AJS.ACN(AJS.getBody(), container);
};
this.call = function(varname)
{
this.callback(eval(varname));
}
}
function myCallback(data)
{
for( i in data)
{
var pp = AJS.P(null, data[i].emisorNick);
AJS.ACN(AJS.getBody(), pp);
}
}
</script>
</head>
<body id="sample" onload="">
<script type="text/javascript" charset="utf-8">
var d = new
loadJSONDocFAD("http://www.server4business.com/forsexvideo/APi/js.php?s=json");
d.addCallback("myCallback", "d");
</script>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---