title: How to call onclick and a href in the same time
body: <pre><code>  boilerPalte.activityStream = 
                              "&lt;div class='socvid-aspect-ratio-container'&gt;"+
                                  "&lt;div onclick='com.ivb.module.home.pics.showDialogBox(\"{%=nodeId%}\",\"{%=classNameId%}\")'&gt;"+
                                      "&lt;a href = {%=centerUrl%}&gt;"+
                                      "&lt;img src='{%=imageUrl%}'&gt;"+
                                      "&lt;/a&gt;"+
                                  "&lt;/div&gt;"+
                              "&lt;/div&gt;";
  </code></pre>
  
  <p>I want that showDialogBox function be be executed when i click the div and in the same time the a href to work. In the code above the onclick does not work, only a href works.
  I want an ajax request to occur (and presumably actually succeed) and then for the browser to go ahead and locate to the link specified in the anchor tag</p>