Can add a parameter to set up popup windows as a modal windows?

Can add a parameter to set up popup window as a modal window?

I want to open modal popup window to display a image.

1/6/2009 5:15:30 PM 93655 articles. 6 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 33
Get it on Google Play
Get it on Apple App Store

Try this.. 

window.showModalDialog("http://localhost/Test.aspx", "center:yes;resizable:no;dialogHeight:300px");

My Blog

"Don't be afraid to be wrong; otherwise you'll never be right."
1/6/2009 5:26:17 PM


Do you want to show images?

try this alternative:

Any doubt, post your comment.

Segundo Serrano P.
Ing. Sistemas
1/6/2009 7:08:35 PM

 I recommend JQuery always as Microsoft and visual studio started supporting this light weight javascript framework.

1/6/2009 7:23:55 PM

Hi aspfun ,

You can use method for the firefox navigator.

Add the "modal=yes" property for the firefox.

As for ie, you should use 'window.showModalDialog' method.'openwin.html','newWin','modal=yes,width=200,height=200,resizable=no,scrollbars=no');

It should be like the following:

function showDialog(url)
if( document.all )//IE
//modelessDialog set modal dialog=yes
feature ="width=300,height=200,menubar=no,toolbar=no,location=no,";

Hua Jun Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
1/7/2009 8:49:48 AM

Similar Artilces:

Modal Popup window opens new window when form posted
I am having trouble with modal dialog.  I have a web page PopupTestParent.aspx and popup.aspx.  When I click button on popupTestParent.aspx, it opens modal dialog as exptected, when I click button on Popup.aspx, and form gets posted, it opens a new window, instead of using same window as the form.  code for both pages is given below.. Any clue, how to get over this? <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PopupTestParent.aspx.cs" Inherits="PopupTestParent" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...

how can I use window.opener but with window.showModalDialog instead of
Hi, I tried the code bellow that I found in  :  4guysfromrolla site:the code displays a source page, whn I click on the Calendar <a href />  link  i get a calendar displayed on a target page. when I select a date, the calendar page closes and populates the textbox txtDate with the chosen date. Here is the code of the 2 pages and my question is down bellow:a source page called frmCalendar.aspx has this:<form name="frmCalendar">   <input name="txtDate" type="text" />   <a href=&q...

superreview granted: [Bug 263844] Javascript window.close() on popup not working when popup is opened in tab : [Attachment 162257] set opener on opened windows diverted into tabs
Boris Zbarsky <> has granted Boris Zbarsky <>'s request for superreview: Bug 263844: Javascript window.close() on popup not working when popup is opened in tab Attachment 162257: set opener on opened windows diverted into tabs ------- Additional Comments from Boris Zbarsky <> r+sr=bzbarsky. Dan, thanks for doing this! I really wish we could factor some of this code that's being copied f...

Popup Window (window.opener)
Hi, I have an ASP.NET application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this second Popup I want to redirect the user to a fifferent page in my application when the popup closes. Is this possible as another popup opened this second popup so I cannot use 'window.opener'. Any advice is much appreciated. Thanks, C can you please explain a bit more clearly, what I got is that you hae total 4 windows isn't it? are you using hyperlink control or window.openfeed...

How to send value form popup window to opener window ??
I have problem and I need everybody help me. I desgning a website using ASP.NET and VB.NET - I want, when user click button as show popup window with list user of system (from database) and click user of list, it's in textbox of opener window. Can you help me code it ??? Thanks a lot !!!  Không học không biết, học rồi sẽ biết  You have to access the window.opener.document object in JavaScript. This will give you access to the DOM. function getOpenerElem(Jb) { return window.opener.document.getElementById(Jb); }  I use this function to access the opening window...

Open Popup Window and Close the window that Opened it
I'm using some code that I found on this site to open a Popup window with a Button Click for a Crystal Report: Dim PopUpScript As String = "<script language='javascript'>" + "" & Chr(39) & strExportFile & Chr(39) & ");</script>" Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", PopUpScript, False) After the Popup Window shows the Report I would like to close the window that opened this popup window.  Thanks, Mark just add window.close(); in Dim PopUpScript As String ...

Modal window on Modal window
A while ago, I posted a problem that timers didn't seem to be working for me. I created a work around, and there were several responders that timers were working for them. Then I noticed that my login box was having an issue - after the "invalid login/password" message gets displayed, no fields got the focus. The login window is a Response! window, as it the message display window (inherited from common ancestors). When the login window opens the message window, the line after the call that caused the window to open gets executed. I found this to be odd... S... and window.opener
Sorry for a really dumb post. I am not a scripting person... I find the whole thing a bit strange really with losely coupled types ect...Anyway, I am putting together a ASP.NET v2 application. One of the pages I am planning on implementing a link to open a pop-up window. In this popup window, the user will select the location of somthing, the window close and the value returned back to one of the parent browsers controls. I know this is not rocket science and I have done endless searches to try and find the answer. I am loading up the page and passing in the ClientID of the control I wish to...

Passing parameters from web form to windows modal form
Dear All, How can I pass a parameter from an ASP.NET web form (.aspx) to a windows popup modal form? I have a web form that show a list of items in a data grid, when user click on one of the item in the list, the item details is retrieve from database and show on the popup modal form. To retrieve the item details from the database in the modal form, the item ID need to pass to the modal form. How can I do it? Please help. Thanks in advance. Do you mean with windows modal form literally winform or just popup (web page) which is modal? You can open modal web pages using window.showModa...

Popup window being covered up by opener window
I have a web app that contains a button that opens up a small popup window when clicked.  In ASP.NET 1.x (using Studio 2003), the popup window appeared without any problem. But with ASP.NET 2.x (using Studio 2005), the popup window appears, but immediately goes behind the opener window. Here's the code: Dim script as String = ""Dim popUp as String = "myurl.aspx"script += "&lt;script language='Javascript' id='PrevOrders'&gt;"script += "var confirmWin = null;"script += "var screenX = window.screen.availWidth/2 - 400;"script += ...

Open a Window Into a Modal Pop Up WIndow
Good Morning Guys I have a GridView with a linkbutton field and whe I clicked in it a modal Pop Up window is opened. In this window (modal Pop Up window) I have some linkbuttons wich open a page inside this (would be). I am using MasterPage and I need to open the new window inside the modal pop up but the window are opening in a new window and I dont´t want this. When I have click in a button or in a dropdownlist a new page is opened too and i don´t know what is happening.  Can you help me plase? Thanks a lot Hi SIDSIL,Please post your html code, in order to identify t...

Open a popup window from child window
Hello,  I have a gridcontrol in a child window, which in edit mode has one dropdownlist control, one textbox to enter amount and another textbox whose value will be selected from another popup window. The problem here I am facing is.. when I am opening the popup window from the child window, its replacing the child window and thereby not populating the textbox control in the grid as the child window is being lost. Can anyone please tell me how to retain the child window and open the popup in other separate window. Its quite urgent Thanks      Hi Nans,Are you...

superreview granted: [Bug 283342] Many windows don't set window classes : [Attachment 197950] Patch to add a window class to the Default Plugin's window
Johnny Stenback (:jst) <> has granted superreview: Bug 283342: Many windows don't set window classes Attachment 197950: Patch to add a window class to the Default Plugin's window ...

open popup window with click on image and datalist in popup window
 I have a picture,i want to when i click on it a popup window open,in that pop up window i want to have a data list that in every field of it be a link and a picture,when user click on a link with a url go to another website in that pop up window,how can I do this senario? Where are you having a problem? We can't build the thing for you. Post the code that you have so far. NC...    I want when I click on a picture a popup window open Like this? <img src="yourImageFile.jpg" onclick="'Page2.aspx');" /> See http://www.ja...

Web resources about - Can add a parameter to set up popup windows as a modal windows? -

Parameter - Wikipedia, the free encyclopedia
A parameter (from the Ancient Greek παρά , "para", meaning "beside, subsidiary" and μέτρον , "metron", meaning "measure"), in its common meaning, ...

fb_source Parameter - Facebook-Entwickler
This document lists the complete list of values for the fb_source parameter that is returned with th...

Google Webmaster Tools Parameter Handling - Flickr - Photo Sharing!
You aren't signed in Sign In Help Home The Tour Sign Up Explore Explore Home Last 7 Days Interesting Popular Tags Calendar Most Recent Uploads ...

Cat 8: TIA performance standards committee chairman previews parameters of forthcoming twisted-pair cable ...
Category 8, the next-generation twisted-pair cabling specification, is still in development, but the outlook looks quite positive that it will ...

Philippine president asks for 'parameters' of Mayon Volcano tours
Philippine president asks for 'parameters' of Mayon Volcano tours People's Daily Online ... 26, 27, 28, 29, 30, 31. Jan, Feb, Mar, Apr, May, ...

Alternatives to boolean parameters
... ) { PrintLine ( item . Name ); if ( printDetails ) { PrintLine ( item . Description ); } } } Aha! Now can see that the boolean parameter ...

Exporting Error (Error in Parameter...: Apple Support Communities
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability ...

Apple tech monitors device aging, adjusts operating parameters to ensure optimal performance
... describing a method of monitoring the aging of a device's electronics, comparing the data with a global average and modifying operating parameters ...

Is it poor programming practice to pass parameters as objects?
... a free, community-powered network of 100+ Q&A sites . Risser asked: So, we've got a guy who likes to write methods that take Objects as parameters, ...

Parameter Short Film Competition sponsored by Grolsch
Grolsch presents Parameter The A.V. Club Short Film Competition Please Enter Your Date of Birth Ineligible entry Enter For people over the age ...

Resources last updated: 12/16/2015 12:18:43 PM