I have a dynamic web page and want to implement dynamic guestbook into DIV tag. I use this code to load the guestbook:
$(document).ready(function() {
$('.diskusia').click(function () {
$("#disk").load("diskusia/index.php");
});
});
and it is not working. To see how the direct guestbook link work click here Working and to see what happen when I use script above click here not working - there click on walkie talkie picture to start script.
Guestbook use ajax, never need to reload page. What I need to do to make it work properly?
There are Scripts loaded in the discusia/index.php
file, which you have to load manually, too:
$(document).ready(function() {
$('.diskusia').click(function () {
// load needed js
$.getScript('http://airsoftbanda.host.sk/diskusia/gb_ajax.js', function(){
// load guestbook
$("#disk").load("diskusia/index.php", function(){
// load content via ajax
var pcode = '7cda7fcaf498bd8e8e4e4d05aa58e8a8';
ajax('POST','diskusia/gb_view.php','page','1','773877aa04a367b315b5835f4b34016a');
});
});
});
});
now you've to load the css manually, too...