473,606 Members | 2,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link in a pop up allowing to display a page in a frame

Hi,

I look for a script allowing to display a page in a frame as from a
link in a pop up (and close it in the same time
The name of my frame is "body"
In the pop up i try this function in the head section :

function reroutage() {
parent.frames["body"].window.locatio n="assistance.h tm";
window.close();
}

but it does not works, why ?

Thanks a lot
Jul 20 '05 #1
1 1390
baltimore wrote:
I look for a script allowing to display a page in a frame as from a
link in a pop up (and close it in the same time
The name of my frame is "body"
In the pop up i try this function in the head section :

function reroutage() {
parent.frames["body"].window.locatio n="assistance.h tm";
window.close();
}

but it does not works, why ?


Although also called "child window", the popup window is not part of the
frame hierarchy of the "parent window" but part of an own frame hierarchy.
Thus use `opener' or `opener.parent' instead of `parent'. You may also
have to call `window.close() ' with setTimeout(...) .
PointedEars
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3921
by: A.S. | last post by:
I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will click on a link and will not be taken to another page, but precessing will occur. This is mainly for a 'Rating' Application. Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)...
2
2655
by: Martin | last post by:
Dear Experts! I'd be grateful if you can help me with this. I'm having an inline frame which points to 'www.externalsite.com'. The page which contains the inline frame has an orange background, the pages at 'www.externalsite.com' have a white background. Can I change the background of 'www.externalsite.com' to mach the background of the inline frame page upon loading?
1
2083
by: Aki | last post by:
Hi! I've been trying to create a home link in a document that is shown in a frameset of two frames. My aim is to show the first documents that were shown in the frames when the frameset was loaded the first time. The link works perfectly in NN4.5 and 7.1, but IE6 and Opera7 are causing headaches. I've tried to do the link with the following script:
1
3432
by: opt_inf_env | last post by:
Hello, Do anybody know whether the following is possible in html. I want to create a page consisting of two frames in the first one I want to display an "external" page (for example "www.google.com") and in the second one information about this page. Than if I click on the one of the links of the page displayed in the first frame I change content of this frame. What I want to have is the content of the second frame is also changed. Can...
17
2211
by: kimimaro | last post by:
How do you limits employee display where you enter the department for all the employee within that department be displayed and if lets say they are 100 or so and you have to limits 10 employee per page before entering anything to display the next 10 again?
6
2241
by: zino | last post by:
my web application consist of 3 frames :top, left and right, and I use form authentication to authenticate users in ASP.NET 1. the right frame is where the data is displayed I set the default page (as it's required by VS) to some of my pages (default.aspx) there is somewhere in the application where an e-mail is sent to some users containing a url with parameters needed by the page (pageX.aspx) to query the database and return the result to...
1
1438
by: doris1202004 | last post by:
I have divide three frames: 1 is the menu which show the choice a,b,c. on the left side this is a typer-link 2 is the body frame which show the img on the right frame 3 is the sentense frame which show the explination on the buttom frame If I click the choice "a" it will open a image and display on the body frame. The problem is how could I click the choice"a" then the image display on body frame and the explaination also display on the...
4
2733
by: ArrK | last post by:
I want to use a control frame to create and/or modify the content (images and text) of a display frame - all files and images are client side. . When I try to write to the display frame from the control frame I get the error message: "window.parent.pictureFrame has no properties" and all content of the display frame disappears. My plan was to populate the DOM image object for the display frame with the URIs for the graphics (a variable...
4
4569
by: zion4ever | last post by:
Hello good people, Please bear with me as this is my first post and I am relative new to ASP. I do have VB6 experience. I have a form which enables users within our company to do an intranet reservation of available resources (laptops, beamers, etc). The MySql database queries are already in place, as is the ASP administration panel. The frontend that users will see however, still needs some work. I'm really close, but since I'm no...
0
8015
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6770
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5465
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3930
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1553
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.