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

Display UIViewController as Popup in iPhone

NOTE : This solution is broken in iOS 8. I will post new solution ASAP. I am going to answer here using storyboard but it is also possible without storyboard. Init: Create two UIViewController in storyboard. lets say FirstViewController which is normal and SecondViewController which will be the popup. Modal Segue: Put UIButton in FirstViewController … Read more

is it possible to open a popup with javascript and then detect when the user closes it?

If you have control over the contents of the pop-up, handle the window’s unload event there and notify the original window via the opener property, checking first whether the opener has been closed. Note this won’t always work in Opera. window.onunload = function() { var win = window.opener; if (!win.closed) { win.someFunctionToCallWhenPopUpCloses(); } }; Since … Read more

Android: create a popup that has multiple selection options

You can create a String array with the options you want to show there and then pass the array to an AlertDialog.Builder with the method setItems(CharSequence[], DialogInterface.OnClickListener). An example: String[] colors = {“red”, “green”, “blue”, “black”}; AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(“Pick a color”); builder.setItems(colors, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) … Read more

How do I make a Mac Terminal pop-up/alert? Applescript?

Use osascript. For example: osascript -e ‘tell app “Finder” to display dialog “Hello World”‘ Replacing “Finder” with whatever app you desire. Note if that app is backgrounded, the dialog will appear in the background too. To always show in the foreground, use “System Events” as the app: osascript -e ‘tell app “System Events” to display … Read more

tech