popup

Self-closing popups in IE -- how to get proper onBlur behavior?

I want a transient window to close itself when the user clicks away from it. This works for Firefox: var w = window.open(...); dojo.connect(w, "onblur", w, "close"); but it doesn't seem to work in Internet Explorer. Some other sites made reference to an IE-specific "onfocusout" event, but I couldn't find a coherent working example of ...

Javascript popups, can I reference all js on the parent page like normal?

Hi, Are all popups the same when it comes to referencing the parent pages js variables/methods etc? How about ajax requests from within the popup's content? From what i understand a popup is just playing with the Z-order, so its basically still on the parents page just looks 'higher' right? ...

Reddit style 'join' popup

Hi, Is reddit's join popup that appears on the page hidden on the page or is it injected via ajax? How do they do it? (general terms if someone out there knows, I will dig into the source myself but need some guru pointers). ...

In IE6, when I display a modal, a dropdownlist from the parent page is visible on top of the model

In IE6, when I display a modal, a dropdownlist from the parent page is visible on top of the model. i.e. the dropdownlist from the parent page is overlaying above the model popup. In firefox and IE 7 it is fine (the dropdownlist is tucked underneath the model like it is suppose to). Any ideas what it can be? ...

WinForms open popup usercontrol as menuitem menu dropdown?

Been searching everywhere and can't find a way to do this. I have a menubar across the top of my winforms program. Now it just pops up a normal menuitem menu. I would like to disable that menu and popup a nice looking usercontrol that looks like its the dropdown for that menu item but includes much more customization. A good example wou...

How would I implement stackoverflow's hovering dialogs?

I am in love with stackoverflow's single-color "click-to-close' hovering dialog boxes that greet a user when they try to vote and aren't logged in or use the site incorrectly. Any idea how and/or what technology Jeff used to implement these neat little devices? EDIT: I'm specifically talking about the SQUARE dialog boxes that say "Cli...

Ext Dependency Builder in POPUP window

Hi all, I have a big problem that makes me go crazy ... I want to add into a popup window a "Ext Dependency Builder" component ... using the components here: "http://extjs.com/deploy/ext/docs/index.html" dialog = new Ext.LayoutDialog("name1", {layout parameters}) where "name1" is the name of a div on my main jsp page. I need to add a...

Jquery Popup Problem in ajax

I am using jQuery and AJAX. When clicking the Hyperlink, the associated document to be loaded in Popup Menu works fine. The problem comes when I use AJAX. My Code: //index.html .... jQuery.ajax({ type:'POST', url:' my.php', data:'one='+one, success: function(data){ jQuery("#another").l...

Limit modal size of a "PopUp" in Flex?

I have this : private function tileList_itemClick2(evt:ListEvent):void { img = new Image(); img.maintainAspectRatio = true; img.addEventListener(Event.COMPLETE, image_complete); img.addEventListener(ResizeEvent.RESIZE, image_resize); img.addEven...

How can I open a message box in a Windows batch file?

I'm kind of going through DOS again and it's been ages, so I need a lot of help. My question is; how can I make a batch file open a popup screen? Like: Sorry for the poor English, I'm Dutch/Italian >.< ...

Hiding Popup control when other window's in focus

I have a custom UserControl which tries to recreate auto-complete for a textbox. When user types, the text is used to filter a provided collection of items and then a Popup displays a ListBox with items that match what user have typed. Unfortunately, if user decides to switch away from the application to another window (browser, MSWord,...

Javascript passing data from child window to parent window, IE bug ?

I've got a popup window that gives data back to its parent. Using window.opener.document.data = data_from_popup; This work well in FF, but in IE (6/7) the data can be accessed for the time the popup is still displayed. When I close the popup it looks like the data gets garbage collected. I've tried to use a clone() function for the dat...

Create CallOut using Javascript CSS and Div

I need to create a callout using Div which can popup when some validation goes wrong. I am working 1.1 framework so AjaxControlToolkit is out of question. I have even tried one sample provided at dailycoding.com. I hope there is some solution to it. ...

popup blinks in ie8

Hi, all! We had discovered strange behaviour of popups in IE8. In IE7 and IE6 our popup looks like this: But in IE8 it has strange border which "blinks" for 5-6 times and looks like this: Code which is used for showing this popup: Browser.prototype.showPopup = function(someHtml) { ... var popup = doc.parentWindow.createPopup(); ...

Disable Javascript popups when using Windows.Forms.Webbrowser.Navigate()

Ok, I have a very frustrating problem. I am parsing a webpage and need to have it execute the javascript in order to get the information I want. Form f = new Form(); WebBrowser w = new WebBrowser(); w.Navigate(url); f.Controls.Add(w); f.ShowDialog(); HtmlElementCollection hc = w.Document.GetElementsByTagName("button"); This works and...

Java - How to create a custom dialog box?

I have a button on a JFrame that when clicked I want a dialog box to popup with multiple text areas for user input. I have been looking all around to try to figure out how to do this but I keep on getting more confused. Can anyone help? ...

Open a pop up window maximumize to the user's screen configuration

What is best way to open a pop up window maximized to the user's screen configuration? I am using C# ASP.NET 3.5 web site project. Update: @Anthony - The windows xp task bar covers up some of the browser window. How do I set to maxmmumize and stop at the windows xp task bar? Update 1: I used the following the solution to maxumize t...

Winforms Creating Dropdown style panel

Hi I am attempting to create my own custom Autocomplete style dropdown control in c# .net2.0. For speed of development I have built my control as a UserControl but have hit on an issue of doing it this way. When the custom drawn dropdown gets drawn I have to resize the UserControl area to be able to display the list of options. Ideal...

Javascript Confirm popup Yes, No button instead of OK and Cancel

Javascript Confirm popup, I want to show Yes, No button istead of OK and Cancel. I have use vbscript code <script language="javascript"> function window.confirm(str) { execScript('n = msgbox("' + str + '","4132")', "vbscript"); return (n == 6); } </script> this only work in IE, In FF and Chrome, it does't work....

Javascript working with ASP.NET code behind

I have to make a delete button for a simple intranet forum. I would like to have a javascript alert box (or equivalent) asking for confirmation when deleting posts. However, I've found it difficult to get the result of the javascript confirmation box to feed into the code-behind. Is this even possible? Or do I have to use another sor...