bootstrap navbar open on first click and go to link on second click - drop-down-menu

I'm using the bootstrap 3 navbar with drop down. Default is behaviour is on click open dropdown and on second click close. I want to visit the link on second click. Is that posible whith default bootstap functionality>

Try this:
$('.dropdown').on('show.bs.dropdown', function () {
$(this).siblings('.open').removeClass('open').find('a.dropdown-toggle').attr('data-toggle', 'dropdown');
$(this).find('a.dropdown-toggle').removeAttr('data-toggle');
});
This will toggle the dropdown open on the first click, while closing any other open dropdowns. If you click the parent of the open dropdown menu again it will navigate to it's href. If you toggle a different dropdown it will "reset" any dropdowns that were open so that you can re-toggle them again.

Related

Kendo Grid MVC Open Context Menu on Left Click

I am using MVC Kendo Grid. First column has an icon which opens a right click context menu. I want to left click this icon and open a context menu / menu.
Please note on individual row I want to perform some operation when selecting some operation.
You can specify the event to show the context menu: .ShowOn("click"). See https://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/ContextMenuBuilder#showonsystemstring for documentation and https://docs.telerik.com/kendo-ui/api/javascript/ui/contextmenu/configuration/showon for an example.

Using Dynamic Navigation Menu In Oracle Apex 5

I am Using Oracle Apex 5 For My applications. I have Created a Dynamic Navigation Menu List. But I want to Customize and The Menu Like Shop.oracle.com Menu.
I have created a header Like shop.oracle.com. header. Just I want to click on Browse Item and Open My navigation Menu. Or On Button Click Open a Dynamic Navigation Menu.
Like Browse Button Click Open The Menu:
Dynamic navigation list APEX 5 try this page
Here is an another example

Kendo UI template-based menu - how to?

In this Kendo UI menu sample, if you click on "Stores" you will see a template-based menu. It has a button "See full list" but it doesn't do anything.
Question: how to trigger an action when an element is clicked in a template-based menu? Note that the menu should close after the action is triggered.
You can close the menu on Button cilck as below:
<button onClick="alert('See Full Clicked.'); $('#menu').data('kendoMenu').close();" class="k-button">See full list</button>
See the updated Menu example:
Updated Kendo Menu sample

can i avoid to show home page slider for individual event by joomla event module?

i've uploaded a joomla (version 1.5.26) site: http://srajib.info/s2l/
when i click any particular event (Right side), it also shows home slider:
http://srajib.info/s2l/index.php?option=com_jevents&task=icalrepeat.detail&evid=3&Itemid=1&year=2013&month=09&day=07&title=long-jump-event&uid=07390f799fedccea98b8ed46532fa4cb&catids=1
if i click any date of calendar (Right side), it also shows home page slider.
how can i avoid to show home slider both cases?
Try this:
Go to your Module Manager
Identify your frontpage slider module, and click on its name
In the Menu assigments section click the Select Menu Item(s) from the List option
From the list below it you can select the pages/menu items that you wish the module to be displayed on. Make sure to deselect the Events and Calendar menu items.
Click the Save icon in the top toolbar.

Kendo UI Menu jumping when menu is clicked

I have my menu set to:
.CloseOnClick(true)
.OpenOnClick(true)
(I am using MVC4 with Razor syntax)
When I click on a menu item, it opens the menu content, but when I click on the menu item again, the screen jumps down the page when it's not supposed to. I can't figure out why the screen is jumping.
Here is the code in question that is triggered:
items.Add().Text("Stores")
.Content(#<text>
<h2>Around the Globe</h2>
</text>);
It seems the screen is jumping because of the .Content() parameter.
Also, before the menu is clicked, the URL is:
http://localhost:55656/HelloWorld
But after it is pressed the URL changes to:
http://localhost:55656/HelloWorld#Menu-2
Although nothing changes besides the Kendo UI Menu opening up, it's not until it's pressed again that the screen jumps.
Seems like the Menu is navigating on click. This should only happen if you intend the item to navigate () or if you have a JavaScript error on the page and the click on the item is not prevented. Can you check if there really is an error and post it here?

Resources