popup

Ajax pop up box using Ruby on Rails

戏子无情 提交于 2019-11-29 22:22:02
问题 This is a pretty basic question but I can't find a good answer for it. I have a page in my Rails app where there are many objects that can be 'flagged'. Clicking the flag button should display a little box with a confirmation, little form, etc. The trouble is I can't figure out how to do this using RJS templates. I've been using page.insert_html but this requires an ID. In order to make this work I had to assign each thing that can be flagged a unique ID. This doesn't seem very clean and

iOS Option Popup - Similar to Cut/Copy/Paste

放肆的年华 提交于 2019-11-29 21:59:09
问题 For an app I'm developing I need some popup options, similar to how Cut/Copy/Paste is displayed when selecting text in a UITextView or UIWebView. However, I'm having trouble finding what this kind of popup is called. Is there a public API for them, or is it something that has to be implemented from scratch? 回答1: The class you want to look at is UIMenuController. If memory serves, you will need to create an array of UIMenuItem instances to describe the custom actions, and add them to the

JavaScript / jQuery - Open current link in pop-up window

家住魔仙堡 提交于 2019-11-29 21:48:12
<a href="http://google.com">Link</a> How can I open this link in a pop-up window? And prevent the browser to block it There's "new windows" and there's "popups". Using target=_blank will open in a new window, except that modern browsers put new windows in new tabs by default. Which sounds like it isn't what you want. For an actual popup you want window.open() , and be sure to include some specific width and height, otherwise some browsers will still put the new window in a new tab. Darin's example looks good to me. As for popup blocking, the general approach that browsers take is that popups

Disable/suppress tcltk popup for CRAN mirror selection in R

佐手、 提交于 2019-11-29 21:25:03
My question is similar to a question previously posted but never really answered here: Disable GUI, graphics devices in R I do not like the R tcltk popups for CRAN mirror selection. They also pop up to choose a package when searching for help on a function in two packages. Is there any way to disable these windows without disabling X11 completely? I still want plot() commands to work as normal, but disable the little select menus that take forever to load over a remote connection. For example, if you use ssh, but don't use -X, then the mirror select is just text within R, you type a number. It

Google picker auth popup is being blocked

允我心安 提交于 2019-11-29 18:45:10
问题 I have a mobile site which lists jobs, the user applies and uploads their CV (resume) - I want them to be able to choose a file from their Google Drive. I've created the Hello world example here - https://developers.google.com/picker/docs/ (code reproduced here for convenience) Problem is that if not already logged into Drive, a popup to login is launched. This is bad enough on a desktop but really bad on a phone. I have tried this solution, but get 'TypeError: gapi.auth is undefined' I also

run function from child window in parent window

南楼画角 提交于 2019-11-29 18:24:27
I have two windows: the parent and the popup . Obviously parent has a reference to popup . Now in popup I have a function say function test() { alert('test'); } and I want to call this function in parent , something like popup.test(); . Is there a way to do that? I do know how to do that the other way around. Just declaring window.test = function() { alert('test'); } and calling window.opener.test(); in popup works fine. However this does not work in my case (I think because the window.opener object is a reference, but window.open and window in popup are not really related). Any ideas? It

Html popup window from code behind file

流过昼夜 提交于 2019-11-29 18:13:16
This could be a simple but I havent found any easy solution. On clicking button in asp.net web page on button click event html is generated from xml and xsl. This html is stored as string variable. For example lets say dim htmlString as string = "<div>This is my popup</div>" From the above html string how can I dynamically create html popup window in vb.net. I can create popup window on front end by using javascript but havent found any solution to create it through code behind file in vb.net Edit: This does not work in IE, only works in firefox: Dim popupScript As String = _ "<script language

Automatically closing an excel popup prompt using VBscript

拈花ヽ惹草 提交于 2019-11-29 17:58:05
I have an excel file that is supposed to access a remote monitoring server through a web query. Since the data in the file has to be periodically refreshed and saved, I have written a .vbs script to do it. It works fine, but since the server uses basic authentification security, which cannot be turned off, each time it runs, excel throws a popup "Windows Security" window asking for the username and password. There is an option to "Save credentials", but it still requires for the user to click "OK" to proceed, but the system requires there to be no user interaction. Googling around I found this

How can I open a second jquery-mobile popup from the first popup

喜夏-厌秋 提交于 2019-11-29 16:26:12
Using jquery-mobile I am trying to open a second popup (to confirm) from the first popup when the user clicks delete. I have seen a similar thread with working jsfiddle code http://jsfiddle.net/EWQ6n/520/ here: Opening Dialog from within a Dialog in JQuery Mobile However, even copying and pasting this working pop-up code into my jsfiddle does not work. I am using jQuery 1.10.1 with 1.4.2 mobile. The working jsfiddle in the thread above is using 1.9. with mobile 1.30b.1 When I change my jquery to the older versions, it works. (I know, that seems like the easy answer but changing now will mess

Content Editable cursor position to be in editable div when popup of text editor occur

醉酒当歌 提交于 2019-11-29 16:24:14
I'm trying to build a jquery content editable code where a user identifies the editable div while hovering the mouse, once it clicks on that div the content becomes editable and buttons pops up for selecting type of edit. Now when I click the button a text editor pop up and formats the text, once I click the button the cursor or pointer it comes out of the editable div. I'm using jquery to make the content editable Here's my code. $(function() { var mouseX; var mouseY; var modal = false; $(document).mousemove(function(f) { mouseX = f.pageX; mouseY = f.pageY; }); var openPopup = function(e) { /