popup

How to personalize alert buttons - window.confirm() and window.alert() [duplicate]

谁说我不能喝 提交于 2019-11-29 01:51:32
This question already has an answer here: Custom “confirm” dialog in JavaScript? 5 answers I have seen many websites that have personalized their alert and confirmation boxes with different button text. By default, this is what the JavaScript window.confirm() function would output: +-----------------------------+ |Message from webpage | +-----------------------------+ |Popup text | | | | | | | | | | [Ok] [Cancel] | +-----------------------------+ But, what if I wanted some customization like custom header text, and custom button text? +-----------------------------+ |My custom Header | +------

Android: Error popup on EditText doesn't move down when keyboard goes away

只谈情不闲聊 提交于 2019-11-29 01:49:50
I have an activity that displays a few EditTexts on screen for user input. To be sure the soft keyboard doesn't cover my fields when it displays I have set the property android:windowSoftInputMode="adjustPan" for my Activity in the manifest. I am validating the EditText's content when 1. The view loses focus 2. When the user performs the 'Enter' action. Upon validation, if the value is not valid I am calling setError(CharSequence error) on the EditText, which causes a popup to display containing the error I passed in. The problem is if the EditText is moved up when the soft keyboard displays,

How to modify incoming and outgoing call screen view in android

此生再无相见时 提交于 2019-11-28 23:58:00
问题 I want modify below screen according to my option. I don't know how to access this screen. and i need to modify this screen also Please help me to do this. 回答1: You cannot modify default screen but instead of this you can launch your screen for that you need to use BroadCastReceiver for incoming calls here is the link for getting phone state in broadcast receiver http://www.tutorialforandroid.com/2009/01/get-phone-state-when-someone-is-calling_22.html 回答2: You have to write a broad cast

How to show fullscreen popup window in javascript?

不想你离开。 提交于 2019-11-28 22:33:47
Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This: window.open(src, 'newWin', 'fullscreen="yes"') apparently only worked for old version of IE. Geoff Use screen.availWidth and screen.availHeight to calculate a suitable size for the height and width parameters in window.open() Although this is likely to be close, it will not be maximised, nor accurate for everyone, especially if all the toolbars are shown. More than bad design - this "feature" is a recipe for UI disaster. There were a number of malicious web sites which

Make twitter Bootstrap popup modal slide and stick to bottom of page

戏子无情 提交于 2019-11-28 22:07:38
I am using bootstrap 2.3 and I have a modal that slides from the bottom of the page after a few seconds and I want it to stick to the bottom of the screen. Everything is working except when you resize the browser height the modal doesn't stick to the bottom. Please help! This is what the pop-up looks like: https://www.dropbox.com/s/kn257b07hdle52i/Screenshot%202014-10-27%2016.09.12.png?dl=0 It sticks until you resize the window, then this: https://www.dropbox.com/s/r0x4mkpj9xvsu61/Screenshot%202014-10-27%2016.10.00.png?dl=0 <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible

How to use the link_to helper to open a popup?

橙三吉。 提交于 2019-11-28 21:38:19
I just want to use link_to to open a popup. I tried something but it doesn't work: <%= link_to 'Create a new company', new_company_path, :popup => ['create_company', 'height=600, width=600'] %> <br/> Any idea? Thanks! My first stab at this problem would probably look something like this. It assumes you're using rails 3, jQuery and jquery-rails. If you're not, this approach definitely won't work. This exact code isn't tested, so your mileage may vary. I'm just trying to give you an idea on how you might want to think about the problem. If you'd like me to elaborate on how this works, or have

Open link in Popup Window with Javascript [closed]

老子叫甜甜 提交于 2019-11-28 20:49:26
I'm trying to load a href into a popup window of specific dimensions which also centers in the screen. Here is my source: <li> <a class="sprite_stumbleupon" href="http://www.stumbleupon.com/submit?url=http://www.your_web_page_url" target="_blank" onclick="return windowpop(545, 433)"></a> </li> And here is my javascript: function windowpop(url, width, height) { var leftPosition, topPosition; //Allow for borders. leftPosition = (window.screen.width / 2) - ((width / 2) + 10); //Allow for title and status bars. topPosition = (window.screen.height / 2) - ((height / 2) + 50); //Open the window.

Add a google chart to a infowindow using google maps api

☆樱花仙子☆ 提交于 2019-11-28 20:48:41
I've seen many other people with the same question but couldn't find a answer. I have a simple map I built using the Google Maps Javascript api v3. The map has a few markers which are linked to an infowindow to display specific information for each marker. I want to add a google chart to the infowindow but just couldn't figure out how to do it. I went through every single post I could find (here and in other forums) and I've noticed other people trying to do something similar but seems that there's no specific answer. I've noticed people are successful doing such thing using fusion tables, but

How to display (advanced) customed popups for leaflet in Shiny?

自古美人都是妖i 提交于 2019-11-28 20:43:17
I am using R shiny to build web applications, and some of them are leveraging the great leaflet features. I would like to create a customed and advanced popup , but I do not know how to proceed. You can see what I can do in the project I created for this post on github , or directly in shinyapp.io here The more complex the popup is, the weirdest my code is, as I am sort of combining R and html in a strange way (see the way I define my custompopup'i' in server.R ).. Is there a better way to proceed? What are the good practices to build such popups? If I plan to display a chart depending on the

Handling browser pop-up windows with Selenium

夙愿已清 提交于 2019-11-28 20:28:29
We are running Selenium regression tests against our existing code base, and certain screens in our web app use pop-ups for intermediate steps. Currently we use the commands in the test: // force new window to open at this point - so we can select it later selenium().getEval("this.browserbot.getCurrentWindow().open('', 'enquiryPopup')"); selenium().click("//input[@value='Submit']"); selenium().waitForPopUp("enquiryPopup", getWaitTime()); selenium().selectWindow("enquiryPopup"); ...which works most of the time . Occasionally the test will fail on the waitForPopUp() line with com.thoughtworks