function showresponddiv(messagedivid){
jQuery.get("showRespLive.php, function(data2) {
$(#dialog .poptext).append(data2);
});
};
The bug was when a user click on an information in the box of man by onclick="javascript:showresponddiv(this.id)", supposedly it should call the function showresponddiv() on man.php, but it fail to do so. It will call the function showresponddiv() on other page like woman.php or animal.php. Why? It is because I use jquery to show them 3 pages together into 1 main page. So actually the function showresponddiv() was declare 3 times on the main page.
To fix the bug, just change the name of the functions to showresponddiv2() and showresponddiv3().
0 komentar:
Posting Komentar