popup

override css for html5 form validation/required popup

ぐ巨炮叔叔 提交于 2019-11-26 14:28:33
How can I override the default popup for a required field on a HTML5 form? Example: http://jsfiddle.net/uKZGp/ (make sure you click the submit button to see the popup) The HTML <form> <input type="text" name="name" id="name" placeholder="Name*" required="required" /> <input type="submit" /> </form> NOTE: You must view this with a HTML5 browser like Google Chrome or FireFox. This link doesn't solve my question but it might make someone think outside of the box: http://www.the-art-of-web.com/html/html5-form-validation/ http://adhockery.blogspot.com/2011/03/styling-with-html5-form-validation.html

How to block pop-up coming from iframe?

风流意气都作罢 提交于 2019-11-26 14:22:18
问题 I'm embedding page that has an exit pop-up. When you close the page, it automatically launches a pop-up window. How to disable pop-ups coming from the iframe on exit? 回答1: If you are wanting to block something like POP up ads or something coming from a website you are showing in an IFRAME - it's fairly easy. Make a framefilter.php and javascriptfilter.php which your iframe points to. You can modify it to meet your needs such as the onload blah blah and etc. But as/is - it's been working fine

Popup window in winform c#

ⅰ亾dé卋堺 提交于 2019-11-26 14:06:43
问题 I'm working on a project where I need a popup window. But the thing is I also want to be able to add textboxes etc in this popup window thru the form designer. So basically I have a button and when you click on it it will open another window that I've designed in the form designer. I've been doing some googling but I haven't found what I needed yet so I was hoping you guys could help me! 回答1: Just create another form (let's call it formPopup ) using Visual studio. In a button handler write

Popup over incoming-call screen

天大地大妈咪最大 提交于 2019-11-26 13:56:04
问题 I want to create a customized popup over the android's incoming call screen where I wish to add information for the user. I want the popup to not disable any clickability from the background so that the user could still answer the call. I know it is possible since many applications do it, e.g. MeZeZe app: Some more information : A translucent theme did not work since it cancels the former activity's clickability. A toast is not an option - I don't want it to disappear. I know there are many

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

烂漫一生 提交于 2019-11-26 12:11:28
问题 When using javascript window.open() on a multi-monitor system, how do you control which monitor, or where in the display space the popup opens? It seems out of control to me and otherwise random in it\'s behavior. 回答1: 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

Pop Images like Google Images

蓝咒 提交于 2019-11-26 12:09:31
问题 Is there any jQuery plugin or CSS technique to achieve this pop effect like google images? Thanks 回答1: #images{ padding:30px; } #images img{ position:relative; float:left; height:100px; margin:5px; transition:0.3s; box-shadow: 0 0 0 10px #fff; } #images img:hover{ z-index:2; transform: scale(1.2); } #images img:hover:after{ content: attr(title); } <div id="images"> <img src="http://dummyimage.com/180x120/000/fff" alt=""/> <img src="http://dummyimage.com/175x104/f0f/fff" alt=""/> <img src=

How can I detect if a browser is blocking a popup?

陌路散爱 提交于 2019-11-26 11:10:49
Occasionally, I've come across a webpage that tries to pop open a new window (for user input, or something important), but the popup blocker prevents this from happening. What methods can the calling window use to make sure the new window launched properly? omar If you use JavaScript to open the popup, you can use something like this: var newWin = window.open(url); if(!newWin || newWin.closed || typeof newWin.closed=='undefined') { //POPUP BLOCKED } DanielB I tried a number of the examples above, but I could not get them to work with Chrome. This simple approach seems to work with Chrome 39,

Input fields hold previous values only if validation failed

随声附和 提交于 2019-11-26 11:03:27
问题 I came up with a strange problem. I tried to isolate the problem so following is my simplified code. public class MyBean { private List<Data> dataList; Data selectedData; public MyBean() { dataList = new ArrayList<Data>(); dataList.add(new Data(\"John\", 16)); dataList.add(new Data(\"William\", 25)); } public List<Data> getDataList() { return dataList; } public void edit(Data data) { selectedData = data; } public void newData() { selectedData = new Data(null, null); } public Data

Javascript Confirm popup Yes, No button instead of OK and Cancel

我的梦境 提交于 2019-11-26 10:29:30
Javascript Confirm popup, I want to show Yes, No button instead of OK and Cancel. I have used this vbscript code: <script language="javascript"> function window.confirm(str) { execScript('n = msgbox("' + str + '","4132")', "vbscript"); return (n == 6); } </script> this only works in IE, In FF and Chrome, it doesn't work. Is there any workround to achieve this in Javascript? I also want to change the title of popup like in IE 'Windows Internet Explorer' is shown, I want to show here my own application name. Unfortunately, there is no cross-browser support for opening a confirmation dialog that

javascript - pass selected value from popup window to parent window input box

ぃ、小莉子 提交于 2019-11-26 10:28:41
问题 I am building an order form with PHP and MySQL. The PHP Form has an input box where the user types in a product code. In the event that the user does not know the product code, I want them to click on an image or button next to the input box, which opens a popup with a list of all product codes. they can then click on the product they want and the product code is passed from the popup to the input box on that table row. I have the code of my page below and the image of the page it creates so