Yes....calling SimileAjax.WIndowManager.cancelPopups() gets rid of the event bubble! Thanks Jon.
--Atul On Dec 29, 5:08 pm, Jon Crump <jjcr...@uw.edu> wrote: > Atul, > > How about using the jQuery load method to generate a call to > SimileAjax.WindowManager.cancelPopups() > > Jon > > On Wed, Dec 29, 2010 at 4:29 PM, Atul <atul.kshirsa...@gmail.com> wrote: > > I tried generating a click event on other part of my page using two > > options (here I am using 'elementId' as a place holder ID for > > illustration purpose): > > 1) document.getElementById("elementId").onclick() - this gives me an > > error saying onclick is not a function > > 2) jQuery's trigger('click') method on $("#elementId") - this doesn't > > give any error but doesn't hide the bubble either > > > Can anyone suggest a way to generate a click on some html element? I > > tried googling but other than above two options nothing comes up and > > both of them don't work! > > > Or is there any other way to hide the event bubble? > > > --Atul > > > On Dec 29, 3:40 pm, Atul <atul.kshirsa...@gmail.com> wrote: > >> Thanks David. I will generate a click event on some part of my page to > >> get rid of the bubble. > > >> I am using only simile timeline and not using exhibit so cannot use > >> lens to include a button in the bubble. My apologies for not clearly > >> specifying it in my post. > > >> Thanks again, > >> Atul > > >> On Dec 28, 7:15 pm, David Karger <kar...@mit.edu> wrote: > > >> > Atul, you don't have to override fillInfoBubble in order to put a button > >> > in the bubble. If you define a lens (<div ex:role=lens>) to go in the > >> > bubble, that lens can contain a button that executes some javascript on > >> > a click. You can see a simple example of this on my publications > >> > page:http://people.csail.mit.edu/karger/papers.htmlwhereI'veimplemented a > >> > "click for abstract" link (that could equally well be a button). > > >> > As for hiding the bubble, note that the bubble disappears when you click > >> > outside it. So firing a click event somewhere else on the page ought to > >> > make it disappear. > > >> > On 12/28/2010 10:06 PM, Atul wrote:> Hi All, > > >> > > In my project I have customized the event bubble (by overriding > >> > > fillInfoBubble method) to include a button, clicking on which loads > >> > > further details about that event in another part of the same page - > >> > > this is achieved by using jQuery's load method. Once those details are > >> > > loaded I want to hide the event bubble. However, I am not able to find > >> > > out how that can be achieved. Can some one please suggest a way to > >> > > hide event bubble on custom action (in my case clicking on a button in > >> > > the event bubble)? > > >> > > Thanks, > >> > > Atul > > > -- > > You received this message because you are subscribed to the Google Groups > > "SIMILE Widgets" group. > > To post to this group, send email to simile-widg...@googlegroups.com. > > To unsubscribe from this group, send email to > > simile-widgets+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/simile-widgets?hl=en. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to simile-widg...@googlegroups.com. To unsubscribe from this group, send email to simile-widgets+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.