Parent Window Refresh When Child Is Closed

I have an asp page (parent) which opens a new window (child) with "window.open()". What i want is, when the child window is closed with "self.close()" then the parent window has to be refreshed. Any of you guys know how to do this?

View Replies


ADVERTISEMENT

Pass Value From Child To Parent Window!

I have a page which had a text box.

When a user clicks in the text box, by using the onclick event, i am opening a popupwindow with a list box. Now when the user selects a value in this list box, i want to pass that value to the parent window and populate the parent textbox.

View Replies View Related

Refresh Parent Window

I have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View Replies View Related

Refresh Parent Page From Child Page

This is my coding:

window.opener.location.reload(); window.close();

I don't want the IE to pop up the alert msg to false retry or cancel to reload the page.

I have tried:

1. window.opener.location = window.opener.location
2. window.opener.history.go(0)

But as i carry some data from previous previous page, when i use (window.opener.location = window.opener.location), it can't capture my data as it just load the page. It will pop up error as no data captured :

Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'

Any suggestion?

View Replies View Related

Parent And Child Folders....

I have one asp file including another asp file in a seperate folder. The file of the parent is in a read only, but the child is in a write and read file. If i run the child alone you can write with it no problems, but if i try to write with it calling it through the parent it tells me that permission are denied.

So my question is: are file permissions inhereted by the child from the parent? Is there any way of getting around this besides moving the parent into the same folder as the child?

View Replies View Related

Parent And Child Windows

i have 2 asp pages. the parent and the child. the parent has has a value doc_id which is null. and a button to open the child window. it has other variables and input fields.

the child window creates the doc_id.

Now heres the problem. I want to close the child window, and send the doc_id(created in the child) to the doc_id(in the parent). and close the child window.

But keep the original variables in the parent id. (e.g if the user entered their name in the parent window, then opened the child window, then created the doc_id, then closed the child window, i want to parent to have the user name, and the new doc_id)

View Replies View Related

Parent - Child - Submit - Reply

I am trying to redirect back to a child form after a submit with a file upload and verification of file data. I would like to go back to the form and display a message returning the status of the data. Is that possible? Any suggestions on an alternate? I am using classic ASP, javascript and vbscript.

View Replies View Related

Parent-Child Form Menus

I have two menu form elements that need to refelect a parent child relationship. There are 85 zones and 2200 zone-network combinations.

I want to bind the networkid element to an xml datasource that contains only the networks related to that zone. I have read about something like this before but have never implemented it.

create table tblZone ( zoneid int, zonename varchar(20))
create table tblNetwork ( networkid int, zoneid int, networkname varchar(20))

<select name="zoneid" onChange="reloadNetworks()">...</select>

<select name="networkid">...</select>

View Replies View Related

Parent-Child Dropdown Boxes

I have two dropdown boxes, one is a state dropdown (statedrpdwn) and the other is a city dropdown (citydrpdwn). I want the values in the citydrpdwn to be dependent on what is selected in the statedrpdwn.

So when the user selects a state, I want the city drpdwn to only display the cities in that state. How can I do that? I also need to save this information to a database and retrieve it back correctly from the database. How can I do that?

View Replies View Related

Chaining Parent/Child Relationships

I have a cross-reference table already set up that contains the information about programs that run in our database. It contains the program name, the tables used as inputs and the tables used as outputs. There is a row for each input to a program and a row for each output from a program. Code:

View Replies View Related

Parent And Child Relationship On Sql Server

(I include a bmp file to make sure u all understand what my problem is)..as U all can see from the bmp I supply with this message.. I got 2 Table which is Master and Child table...the problem is I kindda want to make it like a Parent Child Relationship like In ms Access.

View Replies View Related

How To Pass Values From Parent Window To Popup Window In Server Side?

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:

View Replies View Related

Closing Child Window

I have a submit button which opens a child window,and submit parent window to itself and then begins some processing on parent window. On completion there appears close button on parent page.

Can anybody suggest me how to close the child window on the click of close button on parent window and then redirect to other page?

View Replies View Related

Run Query After Closed Window.

I am trying to run a query after the browser window is closed. I need it to delete a value from the database when window is closed.

If it deletes it minutes after its closed that is fine as well. I just need some way to automatically delete information from the table when the user leaves the site.

View Replies View Related

Refresh Parent From Frame

I have a page(1) inside a frameset. The frameset opens from another page(2). I want when I change something on page 1(inside the frameset), the page 1 to be reloaded.

View Replies View Related

Title Of Parent Window

is there anyway to get the title of the window that opened a new window? in javascript it would be window.opener.document.title but is it even possible to get that with asp?

View Replies View Related

Refreshing The Parent Window

i have a popup from the parent window which allwos the user to add in new location. when the lcoation has been added succesfully. then thewindow closes and the parent gets refreshed. In particular, just the location listbox gets updated with the new value. the location listbox i generated from the database using asp.

View Replies View Related

Form When Refreshing Parent Window (only FF)

i have a simple form with about 20 dropdowns. if the user preferes they can go through each dropdown with the question in a pop up window.

In this popup window they enter each question one at a time, once they enter an answer and submit the page reloads and stores the answer in the database and goes to the next question. At the same time the popup window forces a refresh on the main form so that the value selected in the popup is now seen on the main form as they go through each question.

My problem is that when the main for refreshes with new values to be selected FF does not change the value on the drop down. but when i go to the source the correct value is selected. I do not have this problem in IE everything works as it should be.

View Replies View Related

How Do I Reload The Parent Page When I Close The Pop Up Window?

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?

View Replies View Related

Javascript Parent Window Reload Without Retry Popup

I have a child window that has a button to close it. I would like the parent window to be refreshed (since action taken in the child would change the values in the parent). The code I have works, but I get that "Retry" popup... I would like to bypass that. Any suggestions? Code:

View Replies View Related

Window.open Destroys My Parent Session Values

When a open an asp page from a modal window through window.open, my session values of parent(the screen that invoked the modal window) are lost.

View Replies View Related

Refresh Window From Another One

How can i refresh window from another by just clicking button ...

View Replies View Related

Refresh Another Window

I have one asp page (main.asp) that opens a window, that allows the user to enter an item. This window is controlled by enter_item.asp, much the same as a modal VB window. Except, when the item is entered in the pop up window, and this window processes the changes and closes, I need the main window to refresh again.

Because the pop up window is there, for an undefinable period, it is not possible to set a refresh timeout on the main window. Is there anyway, the pop up window can send back to the main.asp page, to refresh itself?

View Replies View Related

Update Record In A Popup And Then Refresh Main Window

I have a main window which shows all records from a table. When a user clicks on "Edit" for a record, a popup showing information of the selected record is displayed.

The user then changes the information on the popup and clicks "OK" button which calls an ASP page to update that record in the table. Everything works with no problem up to this stage.

My problem start after the update process. I need to know how to close the popup and then refresh the main window showing the updated information....

View Replies View Related

Parent To Form To Asp Page To Parent

i have a form that pops up based on a click. the popup opens up correctly.
now what i want it to do is this.

1. submit the data to an asp page. that part i got working
2. close the popup box. have that working as well.
3. after processing the data on the asp page, direct to and refresh the
parent page that the popup was created from.

to be more specific....

i have a bracket page, where you click on the winners name to move them
over. works fine. that sends variables to a pop up box, where you enter a
score. that works fine. now when i submit, it only sneds the data to the asp
page, and even though the bottom of the asp page redirects it to the parent
page, it doesn't. it seems like it is trying to redirect to the popup that
doesn't exist anymore, so it does nothing.

View Replies View Related

Frame Doesn't Refresh Properly When Manually Refresh Page

I have a page with 2 frames. The first one has a link that loads a page in the second frame. This page has a button on it. When the button is hit, the page does some processing and loads another page in the same frame (the second).

I use ASP and response.redirect or javascript in the onclick event of the button to do the redirection. When I refresh the page by clicking the button on the browser (IE), the second frame becomes empty. Please note that the src attribute of the frame is not set.

If I set the src attribute of the second frame to some asp page and then navigate to another page inside the same frame, when I refresh the page, the initial asp page is loaded in the frame regardless of the asp page currently loaded into the frame.

It seems that when you refresh the page, the frames are reinitialized no matter what pages are currently loaded in the frames.

I solved the problem by redirecting to the main page in the top frame, passing some parameters and resetting the src of the frame to the desired asp page. Thus, when the page is refreshed, all the frames are properly refreshed too.

View Replies View Related

Using Refresh Button On The Menu Bar To Refresh Two Frames.

I have an ASP site that uses frames two frames. (yes I
should be using include files, but we started ou using
frames so we have been stuck with frames.)

When I get a page expired warning (I am not caching pages)
and a user clicks refresh from the menu bar the user is
taken back to the home page! The home page is a frame with
a top frame that is repeated on each subsequent asp pages

The lower half of the home page is a login screen.

After login the next page is shown in the lower half of
the frame. Refreshing within the individual frames is ok.

But when the Refresh from the menu bar is used the home
page is returned any ideas why?

View Replies View Related

Connection Closed

yes i did close the connection, infact ultradev did this for me. This works before, I mean in other files and I am using the same format to build new pages.

View Replies View Related

Auto Closed

how to make a window explorer closed tiself like after 1 min? I think I rem there is such function available but I had forgotten the function/code...

View Replies View Related

Object Is Closed

In my page I run one sp to retrieve client details, loop through that and use another to retrieve details relating to each client. The first sp returns records correctly but i get the message "Operation is not allowed when the object is closed" .

when i try to use the second one. I have checked permissions and connections. I have printed out the variables i am passing as parameters and have tried running the sp from sql and it works fine.

View Replies View Related

ASP. Closed Database

I have to do an ASP page with sort of an SQL command to insert in data stored in a access database.

So, I whipped up a simple web page just for visitors to my web to key in name, email and comments about my page, and then it'll save these to a access database. And i got this error: Code:

View Replies View Related

Getting Child Nodes By Name With MS XML Parser

I am trying to port PRAX (PHP Record-oriented API for XML) to ASP and have run into a problem. With Microsoft's XML Parser, to get child nodes, the only way I have seen is by calling on obj.childNodes(1). I need to get a child node by name, not by number, since it could be in any order. Is there a way?

If not, I will have to write that part of the code differently by using an array. I don't want to do this because it would make the code more memory intensive and not as powerful as the PRAX implementation.

View Replies View Related

ASP Running When Browser Is Closed

Recently, I've been encountering some problems with one of my VB Scripts.

Very often, the results that is generated from running the script is truncated. (The results are written into a text file on the server and is picked up by another program for printing).

I've looked through the code at least a hundred times but do not seem to know where the problem lies.

After questioning the users more closely, I discovered that they switched the computer off while the script is still running (it tends to take about an hour or so due to intensive searches on very big sized databases).

My question is : will the script still run to completion in this case? I'm at my wits end trying to figure out what went wrong.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved