Sorry if it is not the appropriate forum.
I'm stuck on this problem.
I use the following code to load a div with jQuery, works perfect, and lets you use the browser buttons (back / forward and bookmark), plus direct url.
- var $j = jQuery.noConflict();
- jQuery(document).ready(function($j) {
- function load(num) {
- $j('div#columna_derecha_centro').html('<img src="img/cargando.gif" class="cargando">')
- $j('div#columna_derecha_centro').fadeOut("slow").hide().load(num +".php").fadeIn("slow");
- }
-
- $j.history.init(function(url) {
- load(url == "" ? "inicio" : url);
- });
-
- $j('a.cargar').live('click', function(e) {
- var url = $j(this).attr('href');
- url = url.replace(/^.*#/, '');
- $j.history.load(url);
- return false;
- });
- });
The problem is to implement the Like button, the method for iframe it loads but when clicking does not work, and the method XFBML simply does not appear .
Does anyone know how to make it work, if something is missing, or simply can not?.
Thanks.