popup

Synchronous Ajax - does Chrome have a timeout on trusted events?

微笑、不失礼 提交于 2019-12-03 02:01:12
Situation We have a situation, where we need to onclick-open a new tab in browsers after performing an XHR / Ajax request . We do this by setting the Ajax request to be performed synchronously to keep the context of the trusted click event and this works fine. Problem However, in the latest Chrome version (36), we experience popup warnings when the Ajax call has some lag... A lag of 2 seconds is enough for Chrome to display a popup warning instead of opening the tab like it is supposed to. The code itself is working, I can click that button multiple times and it works all the time until the

Popup/modal picker for a text field in iOS 7

ぐ巨炮叔叔 提交于 2019-12-03 01:56:33
问题 I am having a lot of trouble figuring out how to implement a standard popup picker. Like many apps' registration screen when a user selects the birthday text field I'd like a popup picker to appear so that users can select their birthday, click done and the formatted date will be added to the text field. This doesn't seem like it should be all that hard, yet it seems there is no simple, clear, standard way of doing this in iOS 7. I've searched the internet and seen some saying to use modals,

How to Add “Write a Review” / “Rate Us” Feature to My App?

二次信任 提交于 2019-12-03 01:53:53
问题 I wish to add some sort of a "Write a Review" or "Rate Us" feature to my app so my customers can easily rate and review my app. Best practice I can think of is to have some sort of pop-up or open a UIWebView within my app so the user is not kicked off of my app while opening the App Store application as done in: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.com/apps/myAppName"]]; Does anyone knows of a way to do that? 回答1: StoreKit API (iOS 10.3 and up) As of

Create/Edit/Save data in a jQuery pop-up for ASP.NET-MVC and Linq2Sql

我与影子孤独终老i 提交于 2019-12-03 00:50:39
I have a MVC page which allows creation and editing of a subcontract. When the user has to select a company for the subcontract, I would like for them to have the option to create a new company. I've made a jQuery pop-up with the company fields, but I don't know how to then save this information to the company table. I would also like to be able to use the same pop-up to allow the user to edit the information for an existing company, but need direction in how to send the information to the pop-up. Use AJAX to both send the data from a form in the pop-up (jQuery dialog, really) back to the

Call a function in background from popup

99封情书 提交于 2019-12-02 22:16:28
Is there a way to call a function in the background script from the popup? I can't explain it much further than that question. It's not an error I'm having with what I'm trying to do but rather something I completely don't know how to do. I want to make it possible to click a button in the popup page that'll call a function defined in the background page. Try this var bgPage = chrome.extension.getBackgroundPage(); var dat = bgPage.paste(); // Here paste() is a function that returns value. It is indeed possible, using Message Passing . popup.js $("#button").click(function(){ chrome.runtime

Telerik MVC3 grid with custom Edit/Insert popup

為{幸葍}努か 提交于 2019-12-02 21:13:49
问题 I'm new to MVC, and I was trying to create a page to list items, and I can Add/Edit items in this list. I used telerik MVC grid to show the list of items, what I want now is to know is there a way to customize how the add/edit popup of the telerik grid. The reason is that I need to hide some fields, and add some other lookups. Thanks in advance. 回答1: I wrote a detailed series on a master/detail AJAX-driven Telerik MVC grid, which makes use of an editor template in the detail grid's editor pop

How to show an text editing box “over” the screen?

跟風遠走 提交于 2019-12-02 20:46:59
I have an application that has a primary layout of portrait (it is fixed as portrait), and there is one place to type in text. I would like to launch like a popup window in landscape orientation with the background image fogged out. I know there is a Popup Widget, but any ideas for rotating the text edit box would be great. Rotating it into a portrait view (text box only) when the keyboard is slid out would also work, as would showing a new screen with the text box on keyboard slide. Reto Meier The easiest solution to your problem is to display your EditText within a separate dialog themed

Launch Facebook Share Popup at Center of Screen

蓝咒 提交于 2019-12-02 19:31:08
The following code works well and launches a facebook popup on the screen, however this popup is not centered. <script type="text/javascript"> function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;} <a href="http://www.facebook.com/share.php?u=<full page url to share" onClick="return fbs_click()" target="_blank" title="Share This on Facebook"><img src="images/facebookimage.jpg" alt="facebook share"></a> Here is the script that

Place WPF ContextMenu on second screen

邮差的信 提交于 2019-12-02 19:16:45
问题 I'm currently trying to solve an issue as follows: I have no parent window, i just right click on the second screen which opens a WPF ContextMenu (from a native C++ mother app) which actually does not appear on the second screen but on the first. I tried using the mouse coordinates. does not work because ContextMenu will stay on the first screen. Placing an invisible helper window on the second screen, setting this as a parent and opening the ContextMenu at the coordintes relative to the

How to handle browser login popup using Selenium & Java

£可爱£侵袭症+ 提交于 2019-12-02 18:19:13
问题 The website that I am trying to automate has a authentication popup that appears when someone visits it. I tried the following code but Chrome immediately throws no alert present exception on the switchTo() line of the code. Firefox does not seem to be working. I am currently using Selenium 3.6.0 with the latest binaries of these browsers. Can someone please help me out? driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.get("https://staging