By Darius Bite on
Hello ... and sorry for my english :P
I'm trying to load a block after the site was loaded... something like this:
html
<a href="#" class="dst_cusco">Cuzco</a>
functions.js
var $divdestino =$("<div>", {
'class' : 'dest_ino',
});
$(".dst_cusco").click(function(evento) {
evento.preventDefault();
$divdestino.insertAfter(".dst_cusco");
$(".dest_ino").load("/themes/expedition/includes/destinos.php");
});
destinos.php
<?php print render($page['cusco']); ?>
obviously this fails. please, help me
Comments
Hey ho Darius, you should
Hey ho Darius,
you should load the block on page load (not js) with drupal and hide it with some css
With js you are now able to show or hide this block.