Change background of EditText’s error message

I would suggest to use @Codeversed solution, but if it doesn’t fit for you for some reason you can use my custom EditText implementation. Usual EditText representation: EditText with error: In few words: I’ve created custom xml state for error display. See related code below: InputEditText.java: import android.annotation.TargetApi; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Build; import … Read more

Popup window in winform c#

Just create another form (let’s call it formPopup) using Visual Studio. In a button handler write the following code: var formPopup = new Form(); formPopup.Show(this); // if you need non-modal window If you need a non-modal window use: formPopup.Show();. If you need a dialog (so your code will hang on this invocation until you close … Read more

Window.Open POST

You cannot trigger a javascript popup and then force a post request. Three options: Trigger a POST form with target=”_blank” using javascript (but this doesn’t allow you to disable interface elements such as the menu bar). Open a popup locally, but don’t specify a url. Use the result of window.open to alter the document to … Read more

Android – How to display a dialog over a native screen?

For my application I used an activity with the Dialog theme. You can declare the theme in the manifest file : <activity android:name=”PopupActivity” android:launchMode=”singleInstance” android:excludeFromRecents=”true” android:taskAffinity=”” android:theme=”@android:style/Theme.Dialog” /> use launcheMode=”singleInstance” and taskAffinity=”” if your popup is detached from your main application. Otherwise user may click the back button and return to the previous activity of … Read more

IE8 losing session cookies in popup windows

This is ‘new’ functionality in IE8! Checkj out the IE8 blog below to read about it. http://blogs.msdn.com/askie/archive/2009/03/09/opening-a-new-tab-may-launch-a-new-process-with-internet-explorer-8-0.aspx IE8 can use multiple processes for handling an x number of IE windows. When you cross a process space, you loose your cookies (Asp.Net session ID seems to be retained over this process boundry). I personally think it’s … Read more

Getting Error: Object doesn’t support property or method ‘assign’

As others have mentioned, the Object.assign() method is not supported in IE, but there is a polyfill available, just include it “before” your plugin declaration: if (typeof Object.assign != ‘function’) { Object.assign = function(target) { ‘use strict’; if (target == null) { throw new TypeError(‘Cannot convert undefined or null to object’); } target = Object(target); … Read more

Toolbar options menu background color

To change the toolbar options menu color, add this to your toolbar element app:popupTheme=”@style/MyDarkToolbarStyle” Then in your styles.xml define the popup menu style <style name=”MyDarkToolbarStyle” parent=”ThemeOverlay.AppCompat.Light”> <item name=”android:colorBackground”>@color/mtrl_white_100</item> <item name=”android:textColor”>@color/mtrl_light_blue_900</item> </style> Note that you need to use colorBackground not background. The latter would be applied to everything (the menu itself and each menu item), the … Read more

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