prettyPhoto Live Event with ajax loaded content

November 22, 2012 | , ,

Prettyphoto is a wonderfull gallery plugin but when used with ajax loaded content it didn’t work with newly loaded images from ajax request into the dom. Even though there are many solutions posted in internet none seem to work as expected. So after playing around a while i found a […]

Read More

Bootstrap Ajax model popup not working

November 22, 2012 | , ,

For some reasons the bootstrap model box was not loading ajax content. I was trying this is wordpress and having a hard time fixing the issue. With some research i found the solution. <!DOCTYPE html> <html lang=”en”> <link href=”bootstrap/css/bootstrap.css” rel=”stylesheet”> <link href=”bootstrap/css/bootstrap-responsive.css” rel=”stylesheet”> <script src=”bootstrap/js/jquery.js”></script> <script src=”bootstrap/js/bootstrap.js”></script> <a href=”<?php echo […]

Read More

Wp ajax call returns 0 at the end

August 23, 2012 |

To any wp ajax call add_action(‘wp_ajax_my_action’, ‘my_action_callback’); function my_action_callback() { //Do action // echo ‘My ajax action’; die(); } Don’t forget to add the die() at the end of ajax function to avoid 0 with the results.

Read More