473,795 Members | 2,914 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reloading page from PHP script included with javascript

red
I have a page with a div which is filled with content from a PHP
script via javascript and innerhtml.

Sometimes, depending on the results of the PHP script, I want to to
reload the entire page, not just the div . However if I put a PHP
redirect in the script, it just loads the entire page into the div..
This makes sense, since the I put the contents of the script page into
the div, redirected or not. But how do I tell PHP to reload the entire
page ?
Feb 23 '08 #1
1 1789
red wrote:
I have a page with a div which is filled with content from a PHP
script via javascript and innerhtml.

Sometimes, depending on the results of the PHP script, I want to to
reload the entire page, not just the div . However if I put a PHP
redirect in the script, it just loads the entire page into the div..
This makes sense, since the I put the contents of the script page into
the div, redirected or not. But how do I tell PHP to reload the entire
page ?
You can't. You're requesting it from the client end, so you'll have to
handle it from the client end.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Feb 23 '08 #2

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

Similar topics

4
2773
by: J. J. Cale | last post by:
Hi Obviously I'm new to PHP. I would like to be able to update a table in a page from a database on the server without reloading the page each time. Is this possible with PHP? TIA Jimbo
3
6029
by: Sam | last post by:
I am constructing a company intranet. On the intranet I made an overview-page which displays the availability of equipment. The information comes out of a database, and is retrieved by php-script. The users of the database should be able to change the status of the equipment. On the overview-page, I placed a button next to each piece of equipment. On pressing the button, a new window is opened, in which the user can input the changes....
1
5943
by: Marcia Gulesian | last post by:
Is there a way of reloading a page programatically - for example, <script language="javascript> document.location.reload() </script> BUT NOT HAVING TO MANUALLY CLICK A "RESET" BUTTOM.
1
14370
by: Izzet Pembeci | last post by:
I am trying to display some rss feeds in my homepage. To do that I am using an external script which returns smth like: document.writeln("<div ...>") document.writeln("Title of News 1") !! read from the feed ..... document.writeln("</div>") So displaying just one feed is a matter of adding the line: <script language=Javascript src="http....?rssfeed=somefeed.xml"> </script>
6
4904
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
2
1457
by: cciszewski | last post by:
Hi, I am new to javascript, but have been programming in C for awhile. I am currently trying to get a page to reload after a password has gone through, in order to trigger another event, however, I cannot figure out the code. This code was generated by a program my company is using for survey tracking. I kind of got thrown into this (the he's good with computers syndrome) and I have NO clue what to do... please help if possible. Here is...
0
1210
by: K B | last post by:
Hi, I could be approaching this all wrong...so please let me know what you think. I have a 2 page frame (WIleft.aspx and WIright.aspx) in asp.net 2.0. I create an html page by transforming xml with xsl file into WIright and there are buttons created with dynamic parameters to pass when the function is run. I have the following script that runs when any given button is clicked in WIright:
5
2207
by: henryrhenryr | last post by:
Appologies for unclear title. I don't really understand the problem I'm facing. My system: PHP 5.2.1, Win2K, Apache 2, MySQL 5 (local - problem is same on my live site running php 4.3.9, Linux, Apache 2). Various browsers. No errors are reported (set to ALL and STRICT) with my problem. To describe the problem a little more: The symptoms - very slow page load. I can see the page reloading simply by observing the 'progress' bar in...
1
1368
by: jodleren | last post by:
Hi I just came a problem with JS on a site - I updated my .js file for the site, it is included as follows: <link rel="stylesheet" href="whatever.css" type="text/css"> <script type="text/javascript" src="whatever.js"></script> Problem: IE does not automatically reload the .js file (nor .css) but uses a cached version - which caused the site to fail this morning.
0
9673
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
10448
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
10217
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...
0
9046
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...
1
7544
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
5440
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
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.