I want to close the window without the warning "internet explorer is trying to close..." being displayed. I want to do this with vbscript. I found out that in javascript you can do it by including window.opener='x' followed by the window.close statement.My code is:
Code:
Response.Write "<script type=""text/vbscript"">"
Response.Write "MsgBox ""Hi. see you again"""
Response.Write vbcrlf
Response.Write "window.close"
Response.Write "</script>"
i have quotation_start.asp which was set to be a small window (height=250, width=500). there is a YES button and some data on this page. when user clicks YES, data will be saved into database, quotation_start.asp will be closed automatically and a new page, quotation_admin.asp will appear in the main window at rightFrame. everything is ok except the quotation_start.asp never close. it remains there. here is the code:
Host Environment: IIS in window 2003 server, three web servers, one load balance, ASP (not ASP.net) code set.There is part A codes in one asp page (page A) to open a new window (Window B). The new window like a clock non-stop running. There is part B codes in the page A need to close window B.
There is no problem if the there is only one web server. It works. When there is a load balance and more than one web server, then the window B can not be closed.
I wrote an ASP page to export data from the database to an excel spreadsheet file. The problem is, after the user saved the file to his/her hard drive, the export browser window still remains. How do I close the export window after users saved the file?
In an asp page I have the following scenario happening (or would like to happen)
person picks a menu item in main page which opens a popup window that allows customization of that menu item. Upon submitting that page the results go to a second page in the popup window for collection into variables.
I was hoping to just close that second page, but everything I have tried results in a message window stating the program is trying to close the page (y or n). I was hoping to get rid of this, but can't seem to no matter how hard I try.
There are many examples on here that seem rather old and may have worked with former versions of IE without problem, but none have worked how I wanted.
Does anyone have suggestions on how I could get the above...or even modify things so that maybe the original popup window can be closed...I do wonder if its the fact that a second page has been opened in the popup window.
the code above - I want to send the email and then I want the window to close, however, everytime I do it, a messahe comes up saying: "Object Moved. This object may be found here." The email itself opens but the window doesn't close.
i have an Update button. according to flow operation, after customer clicks the button, the new data will be saved and i want to close the current window automatically. how to that?
I would like to capture window close event, i.e. when user clicks "X" button of the browser, I would like to close all open dataabse connections.
Also, I would like this to apply when a user tries to close browser using File > Exit or when the user tries to type another website URL in the browser.
I have a datagrid displaying data. There's an "edit" button, which I use Javascript to create a popup window where I can change the information. There's a "save" button on the pop up window.
Currently, I have to click the save button, and the the close button to close the pop-up window, go back to the calling page and refresh it before the information is updated in the calling page.
I would like to be able to use the "save" button on the pop-up window to close the pop-up AND reload the parent page. Is that possible?
"Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available.
As a security precaution, Internet Explorer does not automatically resubmit your information for you.
To resubmit your information and view this Web page, click the Refresh button. "
I'm developing an e-commerce site from scratch.
I've noticed on other e-commerce websites that use other development tools such as php or probably "websphere" (java) that when clicking the back button this message appears during a checkout process. This is good because it reduces customer error in many ways.
I'm using ASP and response.redirect mostly. But, I've noticed that even setting a page timeout to zero won't stop the caching of the page. My customer, who just submitted a form, can just click the back button and the cached page just comes up.
How do you get a web app to not show the 'page has expired...' error and refresh and requery when you hit the back button after submitting a form I just want the old data to still be displayed in the form.
I checked knowledge base for this and I do not have "Do not save encrypted pages to disk" checked and am running IE 6.0.2900.2180.xpsp_sp2_rtm.040803-2158.
I am writing a web app using asp.net 1.1 and C#. This web app is launched in another win32 application and this app needs to pass information to my web app. But this win32 application doesn't support long string(Maximum 255)
I hv to use an intermedia plain file and in my web app,usingScripting.FileSystemObject to open the file and read the information in. Each time when I launch the web page, I got a warning message saying "AnActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?" Users need to click Yes to proceed.
All applications run in Intranet environment within a corporate network. My question are "Can I avoid this error message?" and "Can I give permission to my particular web app to run Scripting.FileSystemObject?"
I asp.net pages that run on an intranet IIS server. Some op the pages use XLM DOM doc.Load(sPath) to open and parse a XML file. Every time the doc.Load(sPath) executes in IE6 a warning message comes up "This page is accessing information that is not under it's control. . . "
How can I avoid this message. It is a great anoyance to the users. Do I need to create some time of certificate to pass...
Do you know how to reset session.timeout after user click to extend the session timeout? For example, default session.timeout is 20 mins and 2 mins before will ask whether extend working on the site or logout.
when the senssion ends a message box pops up and alerts the customer that it has ended, but I would only know how to do it after they reload the page or soemthing to check if the session ended. Anyone know how to make a msgbox pop up as soon as the session ends? Also in IIS, is there a place where you can set the sesssion length?
1. I have a form, with a textbox and a button. I have to enter a value in the text box and then i have to click the button, which opens a popup window. Here i want to pass the value of the text box which is entered in the parent window to popup window.
I have to use that value in the popup window's form_load event in the Code behind, and i have to take the values from the database using the value which i have entered in the parent window. Code:
Currently i working on a project using ASP.net and mysql. these are the classes i imported:
<%import Namespace="System.Data" %> <%import Namespace="MySql.Data.MySqlClient"%> Sub Page_Load(sender As Object, e As EventArgs)
Dim myConnection As MySqlConnection Dim myDataAdapter As MySqlDataAdapter Dim myDataSet As DataSet
Dim strSQL As String Dim iRecordCount As Integer
myConnection = New MySqlConnection("server=myserver; user id=XXX; password=XXXX; database=XXXX; pooling=false;")
when i try to test it out on my localhost, i got this error compiler page:
(warning BC40056: Namespace or type specified in the Imports 'MySql.Data.MySqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
I want to provide a lookup facility for users to select a code from a list. I want this to be done in a small popup window, which, when a code is selected, will close down and return the selected value to the main form. Can this be done ??
I'am not familiar wit ASP but I have to maintain an application. In a window there are some text selection fields and a search button. If you press on the search button record list is build according to what is filled in the selection fields. You can select a record and then a detailed window is shown or in another occasion a popup window is shown.
The request is now if the opened window or popup window is closed, then the opener window has to be opened with the same content (content selection fields + record list) as it was before the window or popup is opened.
Now I thought that I have read that every window which is opened gets an ID and that it is possible to call up that window by the ID from the cache again. Is that right? And if so? Or has somebody a better idea. Code:
i want to know a way to end the session as the user closes the window. As the user closes the reg_conf.asp page, i want the session of this user to end as well. how to do? how to detect the closing of the browser? ive used global.asa.
I am trying to set a cut off limit date on my page. For example if the class limit is 40, it should automatically close the registrations. How would I code for that ?
This code was written by someone elase. But I have to add this functionality of setting limits. The code is: Code: