I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?
Thanks,
Kevin 5 3245
On Oct 22, 8:49 pm, Kevin Audleman <kevin.audle... @gmail.comwrote :
I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?
Thanks,
Kevin
Not in PHP. You can use Javascript, however.
Kevin Audleman wrote:
I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?
Thanks,
Kevin
Kevin,
No - it's not PHP, but the HTTP protocol which prohibits it. You can
send a redirect, or you can send a page. But you can't send both.
But why would you want to? If you could redirect after sending
something, your users wouldn't seen the contents of the first page.
Rather, you should decide if you need to redirect before sending any
output, then take the appropriate action.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
Jerry Stuckle <js*******@attg lobal.netwrote in
news:nd******** *************** *******@comcast .com:
Kevin Audleman wrote:
>I understand how to use the header command to redirect a page before any HTML has been loaded.However, I need to redirect after some HTML has already been loaded. is there a command that will allow me to do this?
Thanks, Kevin
Kevin,
No - it's not PHP, but the HTTP protocol which prohibits it. You can
send a redirect, or you can send a page. But you can't send both.
But why would you want to? If you could redirect after sending
something, your users wouldn't seen the contents of the first page.
Rather, you should decide if you need to redirect before sending any
output, then take the appropriate action.
You can DELAY the redirect, however. I get the feeling that you want to
display a "Redirectin g, please wait" type message, which can display
after the redirect info has been sent.
Puckdropper
--
Wise is the man who attempts to answer his question before asking it.
To email me directly, send a message to puckdropper (at) fastmail.fm
On Oct 22, 6:02 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
Kevin Audleman wrote:
I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?
Thanks,
Kevin
Kevin,
No - it's not PHP, but the HTTP protocol which prohibits it. You can
send a redirect, or you can send a page. But you can't send both.
But why would you want to? If you could redirect after sending
something, your users wouldn't seen the contents of the first page.
Rather, you should decide if you need to redirect before sending any
output, then take the appropriate action.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attgl obal.net
=============== ===
Thanks, it helps to understand the protocols. I'm working with a CMS
and the place where I hook my code in is after some of the HTML has
been output. That's why I just wanted to redirect. However sounds like
I'll have to look more under the hood and find the appropriate place
to put my code.
Kevin
"Kevin Audleman" <ke************ @gmail.comwrote in message
news:11******** **************@ e9g2000prf.goog legroups.com...
On Oct 22, 6:02 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>Kevin Audleman wrote:
I understand how to use the header command to redirect a page before
any HTML has been loaded.However, I need to redirect after some HTML
has already been loaded. is there a command that will allow me to do
this?
Thanks,
Kevin
Kevin,
No - it's not PHP, but the HTTP protocol which prohibits it. You can send a redirect, or you can send a page. But you can't send both.
But why would you want to? If you could redirect after sending something, your users wouldn't seen the contents of the first page.
Rather, you should decide if you need to redirect before sending any output, then take the appropriate action.
-- ============== ==== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck...@attg lobal.net ============== ====
Thanks, it helps to understand the protocols. I'm working with a CMS
and the place where I hook my code in is after some of the HTML has
been output. That's why I just wanted to redirect. However sounds like
I'll have to look more under the hood and find the appropriate place
to put my code.
Kevin
Kevin, I'm guessing here, but I think you mean that you want to insert php
content or testing into the html area. This can be done. In that area
where you want it done type:
<?php whatever_you_wa nt_done ?>
Hope that is what you really meant and that it helps you. Note: This will
still be done at the server and an html page passed to the browser.
Shelly This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nazir |
last post by:
I am trying to do something pretty simple - but can't see how it can
be done in ASP.NET.
I have an aspx web page with a form which opens up a new window. The
web page uses code behind to build the new window. There is simple
validation on the form.
However, after the form page validates and opens the new window, I
want it to redirect to another page (or stop displaying the form).
|
by: blu3g85 |
last post by:
how to redirect a page? as in after a few sec, the page will auto
direct u to another page.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
|
by: darrel |
last post by:
I have a 'cancel' button that should reload the current page. Ie, reset the
page back to it's initial state.
Is the best way to do this to simply have the event handler for that button
redirect the page to itself?
If so, is there a short-and-sweet way to write that out? Or do I need to
first grab the URL and parse it?
I don't want to hardcore the url as this might be used in different
|
by: Sontek |
last post by:
What i'm trying to do is create a page with a loading image on it, Then
I'll start a method in a new thread that does all the work and then
fires an event which will redirect the page. Heres my code:
public partial class quote_Loading : System.Web.UI.Page
{
private delegate void LoadCompleteHandler();
private event LoadCompleteHandler LoadComplete;
protected void Page_Load(object sender, EventArgs e)
|
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= |
last post by:
Hello misters and miss,
I have an application web in asp.net 2.0. I have an Main.aspx page that
include javascript code like this:
window.location.href = 'anotherpage.aspx';
I want do this: while IExplorer do request to anotherpage.aspx page and
anotherpage.aspx is loading, I want to show a message "Loading page" in the
Main.aspx page.
| |
by: neuraljay |
last post by:
hi everyone;
I am trying to use DIV and function to control the loading of my page content. Can anyone provide me a quick tutorial on how to do this.
Example:
If user click the GO button on the main page, a new window will pop up and a loading.gif will appear for let say 20 seconds then it will disappear and the actual content of the page will display..
I am a beginner and I've heard I can use ajax but i don't want to use it.
...
|
by: vingomail |
last post by:
Loading pages should be showed before the next page data are loaded. help me friends.
How may i know calculate the next page controls are loaded?
Is there any methods to find out this problem?
Note: I don't want using ajax controls
|
by: luckysanj |
last post by:
Dear Sir,
How can i redirect index page to wwx.site.com/me/index.php.
I have not fineshed front index page work so now i want to redirect this page to my personal information which is located on wwx.site.com/me.
And I inform to user that the index page is under maintenance so this page is redireting to personal information page like wwx.site.com/me.
This all is my own concept so plz clear me that. Is it right method to redirecting...
|
by: ifedi |
last post by:
Hi guys,
Kindly spare a moment to look at this page: http://gottkann.com
Most of the page content is designed to be loaded by AJAX (mostly jQuery .post and .get) on clicking the menu links on top and to the left. Problem is: after A SINGLE SUCCESSFUL loading, nothing else happens in IE (I've tried v7 and v8), and only 'Home' seems to do anything.
All other major browsers seem to be doing just fine. And to complicate matters some more, this...
|
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: 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...
| |
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...
|
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: 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
| |