I have a ul filled with links in my layout/application.html.erb and want the current location link be marked with class="active".
Now I'm using:
<%= link_to 'About Us', { :controller => 'aboutus' }, :class => "menu#{' active' if params[:controller] == 'aboutus'}" %>
But it looks pretty nasty to me.
Anyone has a better idea?
Hi
I've started with a VS2010 Dynamic Data project, but now I want to add other MVC type pages etc.
How can I get "new MVC item" options to appear in AddItem menu?
i.e. this seems to appear in an MVC created project, but if I started with a DD project how can I make the option appear
I am writing a Selenium test in PHP using the PHPUnit Selenium extension.
I know how to type something into a text field:
$this->type('fieldName', 'value');
But how do I select an option from a drop-down menu?
I am using the superfish plugin for jquery here: clicky
it works fine in all modern browsers FF,Safari, Chrome, IE8
but it seems like the z-index is not working in ie6 and 7
you can see the menu is appearing, but being cut off by the elements below it.
I have tried adding a z-index everywhere I can think of but nothing seems to fix this.
How can I fix this?
Thanks!!!
I want to know if it's possible to know which option is selected from another app. That's it, I have an app that runs in the background and I want to know when a certain option from a menu in the messages app is selected (the send sms option). Is this possible? if so, how?? I've been Googling around with no luck so far.
I'm trying to make a simple app that sits on the Mac OSX menu bar and alerts users of updates on our website.
I've been trying to search for documents on how to do this, but no luck so far. Can anyone point me in the right direction?
Thanks!
I have a site whose menu is functioning incorrectly in IE6, and only IE6.
A live preview of the site can be seen here.
The HTML & CSS are too long to post here but please view the source and the CSS.
I have implemented conditional comments and the IE6 Update jQuery plugin. Neither work.
I have big element at the top of the webpage that sides down with jQuery when a button is clicked. However, if the first post on the blog is a flash video, it shows up on top of the menu. Z-index doesn't help in this instance. Any help would be greatly appreciated.Thanks.
Is there any official/unofficial/informal convention for alt+key namings ? maybe, Microsoft have some internal document for that thing. Different menu levels and so on ...
http://img256.imageshack.us/img256/2426/shortcutl.jpg
how do I insert an sidebar menu onto a page without using an iframe? or needing to edit the main page. Is it possible to do this or the only option is to use an iframe?
does anyone know why Win7 Pro IE8 favorites are really the programs in the start menu? I don't see the point, there are usually tons of folders here so it is hard to find internet shortcuts, and why would I want to open a program from IE? I don't like to IE but Firefox usually freezes up on Win7 after 15 minutes...so I am using IE8 more and more.
any ideas?
thanks
Hi guys
I was testing an application called iTrash during which it seems like i have deleted the
"Contextual Menu Items " folder as its no longer present and i can no longer right-click
anywhere on my Snow Leopard. I don't have any backups. Can someone tell me how i can recover
that folder or if i can download the files needed to have in that folder (just the original
ones) to regain the Right-click again?
I have an application where I can launch a modal dialog box over a main window. The main window has some network activity going on in background which updates my background UI. Due to this the application menu becomes accessible even if the modal dialog is open.
How can I avoid this? Any help is appreciated.
I am using Mac, Qt, Carbon.
Hello There,
I new to RichFaces and have been tinkering with it for a few days, I was playing around with drop down menus and i can only see examples of rendering text when a tab is clicked, what i am looking for is to renderer a page when clicking a link in the drop down menu.
Any pointers or help would be much appreciated.
Cheers
I wonder why this is not integrated by default. I'd like to have an item in Windows Explorer's file context menu of a VS solution file to build it.
Is there a tool for this? Or do I have to create this myself?
I have a folder with .txt files in it. How can i make my menuitem get those .txt files and put the filenames in the menuitem, so that it creates a list of all .txt files in that folder.
So when i put a .txt in the folder the program automatically creates the menu item.
Does someone knows how to do this, or perhaps an example?
I'm working on a school project and we want to implement a right click pop-up menu in the gui.
Currently we are doing something like creating a JMenu on right click and setting its location to that of the mouse's position...
This seems really ugly and is very buggy, is there any better way of doing this? I'm sure there must be.
Dear experts,
I download the Android code and "make sdk" to build out my own SDK, but the emulator from this SDK does not work well -- it only shows the black window with the "ANDROID" string, but I can't see any desktop picture or any applications. what's wrong here? anyone could please provide me a hint? Thanks a lot.
I use the command:
$./emulator @jiawelin -debug all
and the last output message is:
emulator: android_hw_control_init: hw-control qemud handler initialized
document.addEventListener('contextmenu', function (e) {
e.preventDefault()
e.stopPropagation()
e.returnValue = false
e.cancleBubble = true
})
No way?
Edit: document.oncontextmenu = null does not work.
P.S. I cannot have the reference of the listener function since I am not the owner of the site preventing the context menu.
I'm using StyledText widget in my SWT app. SWT by default appends "Input method" submenu to the end of existing context menu. Is there any way to remove it?
I have several reference apps, and I'd like to be able to let my users "highlight" text. A reasonably good way to do this, to me, seems to be to modify the "copy/paste" contextual popup menu to add "highlight."
If there's a way to do this, I'd like to know how. If there isn't a way, suggestions would be appreciated. My text is viewed in a UIHtmlView.