popup

Using Javascript to dynamically create links that trigger popup windows

柔情痞子 提交于 2019-12-12 02:32:25
问题 I've searched high and low, and have not been able to find a solution for what I am trying to do. I am adding dynamic rows, and doing it by element id, using code such as this: var cellRight = row.insertCell(1); var el = document.createElement('input'); el.type = ''; el.name = 'description' + iteration; el.id = 'description' + iteration; el.size = 55; cellRight.appendChild(el); I have one field where I would like to add a text link, and have it open a new sized window. A popup, basically. I

How to wait for an activity to finish in asynctask

三世轮回 提交于 2019-12-12 02:26:18
问题 I know that the purpose of the AsyncTask is to run asynchronously with other tasks of the app and finish in the background, but apparently I need to do this, I need to start an activity from AsyncTask and since I cant extend an activity in this class I can not use startactivityforresult, so how can I wait till my activity finishes? Here is my code: public class ListSpdFiles extends AsyncTask<Void, Void, String[]> { public AsyncResponse delegate = null; private static final String TAG =

Chrome extension development: Call a method in popup from background_html

时光毁灭记忆、已成空白 提交于 2019-12-12 02:25:51
问题 I have a popup named mf_popup.html and my background page is named mf_background.html . As I start the browser my background page fires (as is my understanding, I am new to Chrome development), and I would like to call a function in my mf_popup.html page from my background page. For example: Start chrome background page fires background page calls some function in popup page (which initiates some stuff) How do I do the above? 回答1: if you place the needed code in both html-files in mf

Handling custom pop-ups (not the default windows one) through selenium webdriver (3.x)

久未见 提交于 2019-12-12 02:17:55
问题 I want to automate a scenario. When the browser lands on the website, there is a warning pop-up that requires a response to the prompt: Do you want to proceed? There are two options Leave and Continue . I am trying to switch the control with the following functions but its not working. Alert alert=driver.switchTo().alert(); driver.switchTo().alert(); alert.accept(); 回答1: If its JavaScript alert, then driver.switchTo().alert().accept(); should work by accepting the default. Is this pop-up or

How to allow popup to keep on popping up even when you moved on to another page & only stops when a button is clicked?

为君一笑 提交于 2019-12-12 02:03:11
问题 For instance I have 3 HTML pages. I have a javascript popup code that pops up in all 3 pages every time it is loaded. I have a close button that when clicked, closes the popup. Yet the popup will load again once the Page 2 or Page 3 is opened. My target output is this: I want to be able to make the popup, NOT popup, whenever the close button is clicked ONCE in any pages. I am thinking of this cookie thing, which is, though an idea, yet still I am not so far able to come up with a solution.

creating a dialog box on link click, javascript

℡╲_俬逩灬. 提交于 2019-12-12 01:59:20
问题 I would like to be able to launch a popup or dialog box when clicking on a link in my application - I want to add a horizontal slider to this window so the user can adjust the data displayed. I have been researchng various dijit widgets but am unsure of what will work, I have tried to test some of the widgets like dialog, TooltipDialog but have not gotten any results. i am also very new to javascript so my coding is not the greatest. I'm looking for some useful samples if anyone has

Display popup to user in asp.net application (popup from local application is displayed contrary to popup from server deployed application)

无人久伴 提交于 2019-12-12 01:55:30
问题 I am developping an asp.net application. When an user clicks on a button, he calls a webservice passing also the parameter he has before entered in a textfield. When the webservice returns no results, it displays a popup, everything works well in local, but when I deploy my application on my windows server, the pop up is not displayed. This is my code: if (!string.IsNullOrEmpty(textbox.text)) { try { //webservice call string result = webservice.function(textbox.text); } catch (SoapException

javascript popup window and reload

十年热恋 提交于 2019-12-12 01:51:42
问题 I have a slight variation on the window.opener.reload javascript. Normally, if I want to reload a page after closing a pop-up window I use window.opener.reload(true) But this time i want to load a different url into the opener window. So i tried this: window.opener.href('url').reload(true); But this isn't working. Any ideas on why it isn't working and how I can make it work?? Thanks jw 回答1: Assign to location.href : opener.location.href = "url"; 回答2: This might work (subject to same-origin

Bxslider in a pop up div

不羁岁月 提交于 2019-12-12 01:49:47
问题 I am trying to launch a pop up div which will contain a bx slider. The link that launches the pop up div works fine. So is the pop up which appears with some text but the images inside the bxslider don't appear. I thought it was a z-index issue but seems not (or did not manage to fix it indeed). The loading and direction control images are there but not the images.. Many thanks for your help ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD

Postback error, page not displayed when redirected after postback

与世无争的帅哥 提交于 2019-12-12 01:49:17
问题 I have link to the Page3 from Page1 and Page2. In Page1 I have a gridview and when A row is selected it redirects to the Page3 and it passes a msgID to page3 in the URL. And in Page3 URL if someone tries to change the URL it redirects to Page1. In Page2 I have a modal Pop up which is displayed in page2 after postback, the popup has a button to view Page3 and it passes the msgID to page3 in the URL. Response.Redirect(string.Format("Page3.aspx?MsgID={0}", msgid)); When the Page3 is redirected