popup

How do I stop an Actionlink redirect and instead popup and redirect using javascript?

半城伤御伤魂 提交于 2019-12-08 09:11:28
This is script what I have currently - <script type="text/javascript"> $(document).ready(function () { $('.RemoveSystem').click(function () { var href = $(this).attr('href'); var answer = confirm("Are you sure you want to delete this system?"); alert(answer); if (answer) window.location = href; }); }); </script> Here is the link which is there for each record and we can delete each system when we click on its delete button - <%= Html.ActionLink("Delete", "RemoveSystem", new { SysNum = item.Id}, new { @class = "RemoveSystem" })%> Now here is the problem the actionlink redirects no matter what

Create a popup that renders a partial view

不打扰是莪最后的温柔 提交于 2019-12-08 08:57:37
问题 I've been struggling with a popup for the last few days. Here's a little information. I am very new to using JavaScript, but I'm eager to learn. First of all here is an example of what I want to make. (Press 'Inloggen' on the top right corner to make it pop up) The CSS is no problem. I got this working using bPopUp and copying editing the code used in the site, not the examples. But anyway, the site demonstrated here is made using php. But my boss decided to switch to MVC 4 .NET. Which isn't

PyQt4: Move context menu to position

坚强是说给别人听的谎言 提交于 2019-12-08 08:43:13
问题 How would you change the position of a popup menu in pyqt4? This code doesn't seem to do it. self.popMenu.exec_(self.table.mapToGlobal(point)) position = self.popMenu.pos() self.popMenu.move(position.x() + 100, position.y() + 100) 回答1: You version doesn't work because exec_ opens the menu synchronously , i.e. exec_ will block/wait until menu is closed. So your move is processed after the menu is closed. You can use popup instead of exec_ . That is asynchronous, so the following code will be

Webdriver 3.14 IE11: session lost when click link/button that opens a window/popup

爷,独闯天下 提交于 2019-12-08 08:37:18
My Internet Explorer Options: var optionsIE = new InternetExplorerOptions(); optionsIE.IntroduceInstabilityByIgnoringProtectedModeSettings = true; optionsIE.EnsureCleanSession = true; string IE_DRIVER_PATH = SolutionDirectory + @"\\..\\packages\\Selenium.WebDriver.IEDriver.3.14.0\\driver\\"; InternetExplorerDriverService service = InternetExplorerDriverService.CreateDefaultService(IE_DRIVER_PATH); service.Port = port; driver = new InternetExplorerDriver(service, optionsIE); When click on link/button that opens an modal popUp, login e password are required on new window (no normal): while I

Posting a form to popup form using jquery and fancybox

一个人想着一个人 提交于 2019-12-08 07:53:24
问题 I am trying to post from a form to another form in a fancybox ( http://fancybox.net/ ) window. For example I have a list of cities with tickboxes on a form. When the user clicks submit on the first form, I am hoping for the fancybox window to appear with another form in. There will be a textbox on the new form that has the city ids selected on the previous form hidden as form elements. The problem I am having is popping up the fancybox window when the form is submitted. I either end up

ASP.NET: Popup browser windows and session cookies

 ̄綄美尐妖づ 提交于 2019-12-08 07:52:34
问题 SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not "borrow" the session cookie from the parent window. DETAILS: I'm working on an ASP.NET website (.NET 2.0). I use FormsAuthentication. It is a requirement to use cookies to handle the session. On a page I have a button. When the user clicks it, a popup window is opened. The popup displays an ASPX page that uses session variables, previously set from the parent browser window. I've been testing the website

How Can I Safely Manage wxPython Progress Dialog Threading?

喜欢而已 提交于 2019-12-08 06:58:44
问题 I have several calculations to run without any user input and without the user worrying about the program having frozen, so I am trying to show a progress bar popup to keep them aware of what's happening. Looking around has lead me to believe that I need to use a separate thread to do this, and I came up with this example. import threading, wx, time MAX_INT = 10 TEST_TUPLE = [[11, 22],[33,44]] class mainFrame(wx.Frame): def __init__(self, parent, ID, title): wx.Frame.__init__(self, parent, ID

ASP.NET: Popup browser windows and session cookies

让人想犯罪 __ 提交于 2019-12-08 06:29:28
SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not "borrow" the session cookie from the parent window. DETAILS: I'm working on an ASP.NET website (.NET 2.0). I use FormsAuthentication. It is a requirement to use cookies to handle the session. On a page I have a button. When the user clicks it, a popup window is opened. The popup displays an ASPX page that uses session variables, previously set from the parent browser window. I've been testing the website using IE (6, 7, 8) and Firefox 2.0. On all these browsers, the popup window has access to the same

Google chrome extension popup: Keeping the popup running even when it's closed

扶醉桌前 提交于 2019-12-08 05:54:01
问题 So I made my first extension (a shoutcast radio), it works fine, but I have a problem with it: The stream stops playing when the popup gets closed. Basically my problem is the same as in this post ->running a shoutcast radio in a chrome extension So what I need help for is: Keeping the music playing even when the popup is closed. The code: 1 - manifest.json: { "name": "Kombat Syndicate Radio Extension", "version": "1.0", "manifest_version": 2, "description": "Kombat Syndicate Radio", "browser

Can I make web page look as pop up?

∥☆過路亽.° 提交于 2019-12-08 05:52:11
问题 I have created webpage and I am calling it from Jquery function. Technically I used {info} as image button and I am replacing with it with .aspx so that it is redirecting to that page. .replace("${info}","/_layouts/webpage.aspx"); The web page is opening in new browser window. Is there any way that I could make it as pop up so I can place it anywhere in the page. That is to get rid off the toolbar address bar etc. It should look like a pop up. Can anyone help me regarding this. Thanks in