popup

IE8 losing session cookies in popup windows

家住魔仙堡 提交于 2019-11-26 10:25:23
问题 We have an ASP.NET application that uses Forms Auth. When users log in, a session ID cookie and a Forms Auth ticket (stored as a cookie) are generated. These are session cookies, not permanent cookies. It is intentional and desirable that when the browser closes, the user is effectively logged out. Once a user logs in, a new window is popped up using window.open(\'location here\'); . The page that is opened is effectively the workspace the user works in throughout the rest of their session.

Android - How to display a dialog over a native screen?

我的梦境 提交于 2019-11-26 10:23:48
问题 I was wondering if anyone can tell if how to pop a dialog screen up over a native Android screen? I currently have an application that traps an outgoing call and stops it, I then want to pop up a dialog that would take over from the dialler screen and alert the user that there attempt to call has been blocked and allow them have some new options from the dialog. I know that some people will say that I should use notifications instead but I\'m aware of that and its not the way that it should

How to change background color popup menu android

夙愿已清 提交于 2019-11-26 09:34:37
问题 I generate each option of menu from querying database. Here is my code. final PopupMenu popupMenu = new PopupMenu(getBaseContext(), v); SQLiteDatabase db = AdapterDb.getReadableDatabase(); Cursor cursor = db.rawQuery(sql, null); int ctritem = 0; if (cursor.moveToFirst()) { popupMenu.getMenu().add(Menu.NONE, ctritem, Menu.NONE, \"ALL ITEMS\"); do { ctritem++; popupMenu.getMenu().add(Menu.NONE, ctritem, Menu.NONE, cursor.getString(0)); } while (cursor.moveToNext()); } Everything is okay, but

how to implement a pop up dialog box in iOS

妖精的绣舞 提交于 2019-11-26 08:57:32
问题 After a calculation, I want to display a pop up or alert box conveying a message to the user. Does anyone know where I can find more information about this? 回答1: Yup, a UIAlertView is probably what you're looking for. Here's an example: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"No network connection" message:@"You must be connected to the internet to use this app." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show]; [alert release]; If you want to do

HTML / CSS Popup div on text click [closed]

坚强是说给别人听的谎言 提交于 2019-11-26 08:47:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to make popup div instead of popup window for my \'About\' picture/page with current button like in this example: 回答1: DEMO In the content area you can provide whatever you want to display in it. .black_overlay { display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background

Delay pop-up for 10 seconds, only pop up once

三世轮回 提交于 2019-11-26 08:39:55
Hi I'm using the fancybox inline pop-up to to alert a view to a promotion. The code I'm using for this is: $(document).ready(function() { $("#various1").fancybox(); }); How would I modify this so it automaticly popped up after, say, 20 seconds? But once it's been closed it schouldn't pop up again. Actually, none of the solutions posted previously work in real life, why? because the line: $("#various1").fancybox(); doesn't trigger fancybox, it just binds fancybox to the selector #various1, but it still needs a click to trigger the modal/lightbox (not a popup). BTW, Gearóid's solution has syntax

jQuery override default validation error message display (Css) Popup/Tooltip like

橙三吉。 提交于 2019-11-26 08:39:39
问题 I\'m trying to over ride the default error message label with a div instead of a label. I have looked at this post as well and get how to do it but my limitations with CSS are haunting me. How can I display this like some of these examples: Example #1 (Dojo) - Must type invalid input to see error display Example #2 Here is some example code that overrides the error label to a div element $(document).ready(function(){ $(\"#myForm\").validate({ rules: { \"elem.1\": { required: true, digits:

Javascript to open popup window and disable parent window

白昼怎懂夜的黑 提交于 2019-11-26 08:13:06
问题 I want to open a popup window and disable the parent window. Below is the code that I am using; function popup() { popupWindow = window.open(\'child_page.html\',\'name\',\'width=200,height=200\'); popupWindow.focus(); } For some reason, the parent window does not get disabled. Do I need some additional code OR what is the case? Again, I am looking for something similar to what we get when we use showModalDialog()..i.e. it does not allow to select parent window at all..Only thing is I want to

JavaScript window.open only if the window does not already exist

自古美人都是妖i 提交于 2019-11-26 08:11:18
问题 I have an application that opens a new window on clicking a link. This spawns a page that holds a Java applet. The problem I am having is that clicking the same link reloads the page, which resets the Java application. Is there any way to trap this? Two solutions that would be acceptable are: Allow multiple windows to be opened from the click handler Ignore subsequent requests if the window is already open Apologies for being a Javascript newbie - it\'s not really my main thing. The code

How to handle Pop-up in Selenium WebDriver using Java

雨燕双飞 提交于 2019-11-26 08:06:58
I want to handle sign-in part in rediff.com, but the below code doesn't work for that: driver.get("http://www.rediff.com/"); WebElement sign = driver.findElement(By.xpath("//html/body/div[3]/div[3]/span[4]/span/a")); sign.click(); String myWindowHandle = driver.getWindowHandle(); driver.switchTo().window(myWindowHandle); WebElement email_id= driver.findElement(By.xpath("//*[@id='signin_info']/a[1]")); email_id.sendKeys("hi"); If myWindowHandle is not the correct string, then let me know how to get the pop-up Window name, because I can't find the name of the pop-up window. To switch to a popup