hej ludzie, pomóżcie mam dwa kody js które musze koniecznie użyć, ale się gryzą i co odświeżenie strony to inne działanie, jak je ze sobą "pogodzić"?
<script type="text/javascript" src="http://connect.facebook.net/pl_PL/all.js"></script>
<script type="text/javascript">
FB.init({
appId : \'232839340184355\',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
</script>
<script type="text/javascript">
<!--
window.fbAsyncInit = function() {
FB.init({appId: \'0\', status: true, cookie: true, xfbml: true});
FB.Event.subscribe(\'edge.create\', function(href, widget) {
// Do something, e.g. track the click on the "Like" button here
//alert(\'You just liked \'+href);
Action(1,\''.$row['Id_ad'].'\',\''.$row['Source'].'\');
});
FB.Event.subscribe(\'edge.remove\', function(href, widget) {
// Do something, e.g. track the click on the "Like" button here
//alert(\'You just liked \'+href);
Action(2,\''.$row['Id_ad'].'\',\''.$row['Source'].'\');
});
};
(function() {
var e = document.createElement(\'script\');
e.type = \'text/javascript\';
e.src = document.location.protocol + \'//connect.facebook.net/pl_PL/all.js\';
e.async = true;
document.getElementById(\'fb-root\').appendChild(e);
}());
//-->
</script>
czy można do tego zastosować jquery noconflict?
Ten post edytował maksik 6.01.2013, 15:15:47