Hey, this is me again with a question about jquery and what gridlayout I created a php template with the key and code that I insert this
<div id="wrapper">
<div id="grid">
<div class="box"><img src="img/an_005_BUR_thebeat.jpg" width="310px" height="438px" />3 index</div>
<div class="box"><img src="img/an_014_GUE_homme_a.jpg" width="310px" height="404px" />4 Culture</div>
<div class="box"><img src="img/an_044_BVL_springmotiv.jpg" width="310px" height="310px" />5 Pharma</div>
<div class="box"><img src="img/an_039_AN_diskette.jpg" width="310px" height="465px" />6 Pharma IT</div>
<div class="box"><img width="310px" height="100px" />7 Culture</div>
<div class="box"><img width="310px" height="120px" />8 Cosmetics</div>
<div class="box"><img width="310px" height="400px" />9 IT</div>
<div class="box"><img width="310px" height="400px" />10 Culture</div>
<div class="box"><img width="310px" height="400px" />11 IT</div>
<div class="box"><img width="310px" height="400px" />12 Culture</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#grid').gridLayout('.box', {col_width: 340, min_cols: 2});
var final_block = $('');
$('#grid').gridLayout.placeAtEnd( final_block );
$('#grid').bind( "gridchange", function(e){
console.log('gridchange event fired');
$('#grid').gridLayout.placeAtEnd( final_block );
});
$('body').gridLayout.refresh();
console.log( 'gridLayout.info():', $('#grid').gridLayout.info() );
});
</script>
jquery script and plugin are loaded into the header. When I try to run this. Firebug tells me:
"Node cannot be inserted at the specified point in the hierarchy" code: "3"
Does anyone know how to fix this?
Here is an example that I downloaded: http://18735.webhosting7.1blu.de/neu/index.php?item=lifestyle
source
share