Rank: Member Groups: Member
Joined: 7/20/2011 Posts: 10
|
I am trying to use the eo_CancelBubble(event) method to close a flyout.
<eo:Flyout ID="Flyout1" runat="server" For="f1" ExpandDirection="TopRight" > <ContentTemplate> <div onclick="eo_CancelBubble(event);"> <div class="popupPhoto shadowBox"> <asp:Image ID="fImage1" runat="server" ImageUrl="/events/201011-guardians-freedom/guardians-of-freedom01.jpg" /> </div> </div> </ContentTemplate> </eo:Flyout> When I click the flyout, nothing happens, the flyout remains. Also, where can I find documentation on the use of eo_CancelBubble(event) and other methods.
Thanks, John
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, A flyout will be closed on mouse click by default. eo_CancelBubble can be used to cancel the mouse click event thus prevent it from closing. So you should not use eo_CancelBubble if you wish the flyout to close. You can find more information about our client side API here: http://doc.essentialobjects.com/library/1/clientapi_howto.aspxHope this helps. Thanks!
|