I have a submit button and in the php code I have
header("Locatio n: thetargetpage.p hp");
I do the DB work and php and my daughter does the pretty work. She put
my page inside an iframe. So, when the submit button is clicked, it
brings up thetargetpage.p hp inside the iframe.
What we want is to have the destination page have just the
thetargetpage.p hp without the rest of the iframe. How can we make that
happen? For straight html href she uses _top as the target. Here,
however, there has to be a lot of processing code before the
redirection with the header call.
Side question: How do I bring up a new page in php, rather than
replacing the existing page?
Shelly 7 1421
Shelly wrote: I have a submit button and in the php code I have
header("Locatio n: thetargetpage.p hp");
I do the DB work and php and my daughter does the pretty work. She put my page inside an iframe. So, when the submit button is clicked, it brings up thetargetpage.p hp inside the iframe.
What we want is to have the destination page have just the thetargetpage.p hp without the rest of the iframe. How can we make that happen? For straight html href she uses _top as the target. Here, however, there has to be a lot of processing code before the redirection with the header call.
Don't use frames. See: http://webdevelopment.developersnetw...sp?Article=120
You can do virtually everything in CSS that you can do in frames.
Otherwise, you can't do it with PHP. PHP runs server side; you need
something which runs client-side, like javascript. Something like this
should work (untested):
<script type="text/javascript">
if (self != top){
if (document.image s)
top.location.re place(document. location.href);
else
top.location.hr ef = document.locati on.href;
}
</script>
Side question: How do I bring up a new page in php, rather than replacing the existing page?
Pretty much the same problem, and a similar solution - javascript.
Maybe something like outputting the following in the code...
<body>
....
<script type="text/javascript">
window.open ("newwindow.php ");
</script>
....
</body> Shelly
Of course, both of these methods fail if the user has javascript turned
off. It's one of the reasons I don't do either.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
The server doesn't really have much discretion over where the contents
will go. That's determined on the client-side.
I don't quite understand your reason for not wanting to post the form
with _top as the target. Having a lot of processing code doesn't
preclude this as an option.
How do you do it? This is not an href. It is a button.
"Shelly" <sh************ **@asap-consult.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com... How do you do it? This is not an href. It is a button.
A form has a target just as well. For example this opens a new window and
submits the form there
<form method="post" action="example .php" target="_blank" >
<input type="submit" value="click me">
</form>
--
"En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö sp**@outolempi. net | Gedoon-S @ IRCnet | rot13(xv***@bhg byrzcv.arg)
OK, getting there. Now I want to go to a new page without iframe only
on success. On failure I want to stay there. Do I bracket the
target="_blank" in a php if/else?
On Tue, 27 Dec 2005 20:32:21 -0800, Shelly wrote: Side question: How do I bring up a new page in php, rather than replacing the existing page?
target="_blank"
-- http://www.mgogala.com
DeaR Shelly,
For open page on new window : <a href="example.p hp"
target="_blank" >Click Here</a>
Using Iframe:
<iframe name="services" src="example.ph p" width="497" height="750"
frameborder="0" scrolling="no"
style="backgrou nd-color:#FFCC99"> </iframe></td>
i am working on that pages for a site and would be ready to use a day
after tommarow and if you want to see in action can mail me , i will
send you sample built page in zip , you can see, also i frame ..work
well..emai:cont actfastATgmailD OTc*m
have a nice time..
bye.. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: maxim vexler |
last post by:
I'm reading a lot of talks lately about the term iFrame and with your
permission would like to ask a few question about that :
- what is iFrame, i mean what is it good for ?
- does all the popular browsers support it (mostly mozilla & the much
hated IE, google says the do but nothing is better that experienced answer)
- iFrames replaces the old frames once used in html to show a number of
pages in a single windows, right ?
- what are...
|
by: GQ |
last post by:
We have a Web page that at load time will execute and
build: a DHTML Menu/Data Driven, an Iframe with Detail
Data, an Iframe to display Progress Information and
another iframe with totals information of the previous
iframe with Detail Data. Everything works fine except
during the initial load. If we click on any place of the
page during the above loading schema, the process stops
and we end-up with Iframes with incomplete information...
|
by: Dan Popa |
last post by:
Check out the following 2 links:
http://www.batisdev.com/admin/test_1images.asp
http://www.batisdev.com/admin/test_2images.asp
First page contain 4 IFRAMES and 1 IMG tags.
Second page contain 4 IFRAMES and 2 IMGs tags.
The problem is that the second IFRAME from the second page
generates fires a new session.
|
by: Steinar Bang |
last post by:
Is there a way to catch HTTP 4xx and 5xx errors occuring in an IFRAME?
I want to replace the blue and white tomcat error pages, with a small
discrete text saying "The page currently not available".
The browser in question is Mozilla 1.3.1. But it would be nice if the
solution also worked in Opera 7.x, and IE 5.x and 6.x.
I know that setting an onError function on the IFRAME doesn't work,
both because says that it only works for...
|
by: Howard Jess |
last post by:
In a javascript-heavy page, an iframe is created to hold information
from a secondary server CGI process, and the resulting data (in the
iframe) is used to rewrite some content in the main page. To do this
transparently, the iframe is created with style="display: none".
This scheme works great in IE and Mozilla; but Opera apparently doesn't
load the frame, for some reason. We've seen this behavior using this code
and the Javascript shell...
| |
by: Stimp |
last post by:
I have an IFRAME on a webpage with a large height to accommodate a big
list output in the frame.
If I go down the list and click a row, a new page opens in the IFRAME,
but this is a problem if the list is long since the user must then
manually scroll up to the top of the parent page to see the new page.
Is it possible to scroll the parent window to the top using javascript
whenever the page in the IFRAME changes?
|
by: Frances |
last post by:
I need to replace iframes acc. to what option user chooses in a sel
obj.. but figured have to load a blank iframe when pg loads so I can
replace it.. (iframe gets put in a pre-existing div..) this is
approach.. I'm having some problems and would appreciate some help..
thank you very much...
var selItem;
var ifrCurr;
var div = document.getElementById("divPricing");
// this var not being read inside functions..
|
by: Guadala Harry |
last post by:
1. Are IFrames supported only in uplevel versions of IE? If not IE
exclusively, what browsers support IFrames?
2. Are IFrames going to be supported in the future - as far as anyone
knows - or have they been deprecated and will no longer be supported in the
future?
Please note that I'm *not* asking for opinions on the merits of using
IFrames or IFrames vs regular framesets or any other such...
|
by: wmanzo |
last post by:
I have a really professional conspiracy movie site
and I use tons of layers and an external scroll bar assembly.
I would like to put the various sections into MS Iframes and
in order to clean up the page but I find that the iframes interfere
with the getting the mouse coords from the screen which is
essential in moving the scroll bar around.
My test html is given below. With the iframe hidden the mouse coords
are obtainable. With the...
|
by: Vohaul |
last post by:
Hi there,
I'm new to this site, but have been doing webpages with flash, html, css for a few years. I'm a convert from graphic designer to web
Anyway, I have a client site that i designed a year or more ago using Iframes (yes, i know, I should of known better)..
the link is here:
www.mdltd.ca
|
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...
| |
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,...
|
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |