Gallerific jQuery plugin for photo gallery - How to call the remove image function
<p>I am using Gallerific jQuery Plugin (http://www.twospy.com/galleriffic/) to show a photo gallery.</p>

<p>Now, I have an Delete image button. When I click on that, it calls a javascript function DeleteImage('id_2576'); </p>

<p>Now from within this function, how can I call the Gallerific jquery function to remove an image by its hash value? I tried the following, but it does not work. No error message also is shown.</p>

<p>(I have initialised the 'gallery' object, and the images are displayed correctly.)</p>

<pre><code>function DeleteImage(imageID) {
  alert("starting...";
  if (!gallery.removeImageByHash(imageID)) {
     alert('Cant remove by hash value);
 }
 else {
     alert('Removed successfully by hash value);
}
 alert('Finished...');
</code></pre>

<p>It enters the "Starting ..." alert. But it does not enter the "Finished..." alert.</p>
