jQuery override default validation error message display (Css) Popup/Tooltip like

You can use the errorPlacement option to override the error message display with little css. Because css on its own will not be enough to produce the effect you need. $(document).ready(function(){ $(“#myForm”).validate({ rules: { “elem.1”: { required: true, digits: true }, “elem.2”: { required: true } }, errorElement: “div”, wrapper: “div”, // a wrapper around … Read more

How to change background color popup menu android

Add popupMenu style to ur AppTheme: <style name=”AppTheme” parent=”android:Theme.Light”> <item name=”android:popupMenuStyle”>@style/PopupMenu</item> </style> <style name=”PopupMenu” parent=”@android:style/Widget.PopupMenu”> <item name=”android:popupBackground”>@android:color/white</item> </style> manifest.xml: <application android:allowBackup=”true” android:icon=”@drawable/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > …………. </application>

How to create a system tray popup message with python? (Windows)

With the help of the pywin32 library you can use the following example code I found here: from win32api import * from win32gui import * import win32con import sys, os import struct import time class WindowsBalloonTip: def __init__(self, title, msg): message_map = { win32con.WM_DESTROY: self.OnDestroy, } # Register the Window class. wc = WNDCLASS() hinst … Read more

Open multiple links in Chrome at once as new tabs

You can do this in vanilla JavaScript: <html> <head> <script type=”text/javascript”> function open_win() { window.open(“http://www.java2s.com/”) window.open(“http://www.java2s.com/”) } </script> </head> <body> <form> <input type=button value=”Open Windows” onclick=”open_win()”> </form> </body> </html> Here is a more Chrome-specific implementation (if popup blockers are giving you difficulty): var linkArray = []; // your links for (var i = 0; i … Read more

Javascript to open popup window and disable parent window

var popupWindow=null; function popup() { popupWindow = window.open(‘child_page.html’,’name’,’width=200,height=200′); } function parent_disable() { if(popupWindow && !popupWindow.closed) popupWindow.focus(); } and then declare these functions in the body tag of parent window <body onFocus=”parent_disable();” onclick=”parent_disable();”> As you requested here is the complete html code of the parent window <html> <head> <script type=”text/javascript”> var popupWindow=null; function child_open() { popupWindow … Read more

Background blur with CSS

OCT. 2016 UPDATE Since the -moz-element() property doesn’t seem to be widely supported by other browsers except to FF, there’s an even easier technique to apply blurring without affecting the contents of the container. The use of pseudoelements is ideal in this case in combination with svg blur filter. Check the demo using pseudo-element (Demo … Read more

window.open() on a multi-monitor/dual-monitor system – where does window pop up?

Result of “window.open dual-screen” search revealed this fancy nugget: Dual Monitors and Window.open “When the user clicks on a link that opens a new window using window.open. Make the window appear on the same monitor as its’ parent.” // Find Left Boundry of the Screen/Monitor function FindLeftScreenBoundry() { // Check if the window is off … Read more

popup window in Chrome extension

Pick and choose: showModalDialog(<String url> [, <object arguments>]) Opens a dialog-like window, in which you can load a page within your chrome extension. HTML can be used. Do not use showModalDialog, it is going to be removed from Chrome. window.open(<String url> [, <String window_name>[, <String windowFeatures>]]) Opens a window, which, unlike the previous method, does … Read more

Chat Client emoticons window JAVA

This ListPanel might be a useful, as the DefaultListCellRenderer can display an Icon. Icon icon = UIManager.getIcon(“html.pendingImage”); … @Override public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { JLabel label = (JLabel) super.getListCellRendererComponent( list, value, index, isSelected, cellHasFocus); label.setBorder(BorderFactory.createEmptyBorder(N, N, N, N)); label.setIcon(icon); label.setHorizontalTextPosition(JLabel.CENTER); label.setVerticalTextPosition(JLabel.BOTTOM); return label; }

JavaFX 2 custom popup pane

It’s kind of difficult to do well with the current JavaFX 2.2 API. Here are some options. Use a MenuButton with a graphic set in it’s MenuItem This is the approach taken in Button with popup showed below‘s executable sample code. Use a PopupControl Take a look at how the ColorPicker does this in it’s … Read more