473,811 Members | 2,915 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

including a file in another frame

I've the following code:

mainpage.php
----------------------------
<FRAME name="framesupe rior" src="framesuper ior.php?a_calle r=inicio">
<FRAME name="framecata logo" src="frameinfer ior.php?a_calle r=inicio">
----------------------------

framesuperior.p hp
----------------------------
$a_caller = $_GET['a_caller'];
$a_dhn = $_GET['a_dhn'];
if ($a_caller=="me nuprincipal"){ //this file could be called from
another files
include("menuse cundario.php"); //this line will update
framesuperior.p hp
***** Here I need to include "file.php" but in "framecatal ogo"
frame

}

I don't know how can I achieve what I need in *****
Any advice?
reards - jm

Aug 7 '05 #1
1 1291
julian_m wrote:
I've the following code:

mainpage.php
----------------------------
<FRAME name="framesupe rior" src="framesuper ior.php?a_calle r=inicio">
<FRAME name="framecata logo" src="frameinfer ior.php?a_calle r=inicio">
----------------------------

framesuperior.p hp
----------------------------
$a_caller = $_GET['a_caller'];
$a_dhn = $_GET['a_dhn'];
if ($a_caller=="me nuprincipal"){ //this file could be called from
another files
include("menuse cundario.php"); //this line will update
framesuperior.p hp
***** Here I need to include "file.php" but in "framecatal ogo"
frame

}

I don't know how can I achieve what I need in *****
Any advice?


Why not change your FRAME tag to be something like

<FRAME name="framecata logo"
src="frameinfer ior.php?a_calle r=inicio&frame= framecatalogo">

And then you can add a
$frame = $_GET['frame']

to know what frame you are in, and have an if() statement check on that,
and include() as needed..

Kristofer
Aug 10 '05 #2

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

Similar topics

2
1975
by: Theo | last post by:
Just a quick question... When including a page inside another (include('page.php')), is it bad for the second document to also have <head> and <body> tags etc? Im using iframes currently, and it works, but getting the page to match the content is kind of a javascript hack that only works after the page is loaded, not counting the images. So the new page loads, doesnt fit the old page size, and its changed. Not exactly fluid. Thx
7
4036
by: Vojma | last post by:
I have a problem At my site I have designed a framework with tabs as below (tabs_1.asp) +----+ +------+ +-------+ | MC | | Cars | | Boats | + +------------------------- then, into tabs_1.asp I include another page
7
1953
by: Pat Sheen | last post by:
I'm a novice at designing web pages so I'm not sure how complicated this is. I'd like a page that helps me take notes for research. It would have something like two frames. One with a word processor running for my notes. It would allow editing, saving a file, selecting a new file, pasting urls. The other frame is the website I'm researching. If possible it would use the URL typed in the usual place for addresses. If this can't be...
14
2225
by: Frances Del Rio | last post by:
if (parent.frames.main.location == 'mediaselect.html') { I have a very simple frameset, name of frame where I'm checking is 'main'... why is this not working? I mean this is correct syntax, right?? I also put a test alert, but alert does not come up if file I'm testing for is loaded in 'main' frame.. thank you.. Frances
1
1701
by: Tim | last post by:
Hi, We are downloading a few thousand rows of data for users to choose from and need to speed up the operation. The data is related in four levels. The current design allows the user to select the first level from about 20 choices and then the next level's choices are retrieved from the server. This is taking about 4 seconds. We are required to make it faster. We need to be able to download all the data once and save it for use
3
2470
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a button inside a-tag with attribute target isn't anything new relating ASP.Net, its same old HTML). He claimed that you could change another page´s controls´s property´s value from another frame by using this method: ' Page "Bottom"
1
1757
by: Martin Mücke | last post by:
I got a website consisting of about 150 php pages. The site uses a frameless table based design. Header and menu are always the same and therefore should be extracted. At the moment I got a "frame" (not a real html frame, more like "framework"), that contains my menu and header content. In this php page I dynamically include all content pages. Downsides: All pages got the same meta tags. Now I am looking for a better solution. I...
6
1780
Sieira
by: Sieira | last post by:
I have the following files: netfunc.h: typedef struct{ char data; int n; }packet;
1
1206
by: mark.martinez2 | last post by:
How do I transfer the file name which is input in one .py (an MDI parent frame in wxPython) to another .py (an MDI child frame)? The parent gets the file name from the user via a file select dialog, but the child frame is the one that needs to know what file it is working with. Thanks
0
9726
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
10647
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
10384
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
10395
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,...
1
7667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6887
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
5553
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...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4338
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

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.