473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Reload.

Q
Hello,

I have the following problem. Using php I have composed a file which
add to an html file text typed into text-field. Problem is that I can
see new conntent of html file only after pressing "reload" button of
browser. My question is whether I can add some fragment to the html
file to force it to reload atomatically? Pleas help me if you can.

Thank you in advance.
Jul 17 '05 #1
3 2269
On 24 Nov 2004 14:26:56 -0800, op*********@yahoo.com (Q) wrote:
I have the following problem. Using php I have composed a file which
add to an html file text typed into text-field. Problem is that I can
see new conntent of html file only after pressing "reload" button of
browser. My question is whether I can add some fragment to the html
file to force it to reload atomatically? Pleas help me if you can.


No, you cannot _force_ reloading of a page. If you want reaction to user input
without reloading and sending a new request to the server, you probably want
Javascript, not PHP. If you want PHP to handle it, you wait until the user
either reloads, clicks a link, or submits a form to the server.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Q wrote:
Hello,

I have the following problem. Using php I have composed a file which
add to an html file text typed into text-field. Problem is that I can
see new conntent of html file only after pressing "reload" button of
browser. My question is whether I can add some fragment to the html
file to force it to reload atomatically? Pleas help me if you can.

Thank you in advance.


What about:

<input type=text onchange="submit();">

Jul 17 '05 #3
You can use timeouts in javascript to redirect the page to itself after x
amount of time. Or just redirect first time it loads. Something like

<script language="javascript" type"text/javascript">
var counter =0;
x=window.setTimeout("update();",2000); //2000 is roughly 2 seconds

function update(){
window.location.reload();
}
</script>
"Q" <op*********@yahoo.com> wrote in message
news:5f**************************@posting.google.c om...
Hello,

I have the following problem. Using php I have composed a file which
add to an html file text typed into text-field. Problem is that I can
see new conntent of html file only after pressing "reload" button of
browser. My question is whether I can add some fragment to the html
file to force it to reload atomatically? Pleas help me if you can.

Thank you in advance.

Jul 17 '05 #4

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

Similar topics

66
by: Ellinghaus, Lance | last post by:
> > Other surprises: Deprecating reload() >Reload doesn't work the way most people think >it does: if you've got any references to the old module, >they stay around. They aren't replaced. ...
4
by: David MacQuigg | last post by:
I'm going to be teaching EEs some basic Python using the first few chapters of Learning Python, 2nd ed. by Mark Lutz. The discussion on Reloading Modules starting on page 266 is confusing and I...
1
by: Emmanuel | last post by:
Hi, I use a 'reload all' feature in my app, that allow to reload every module. I first try this version : import sys def Reload():
1
by: zdhiu | last post by:
Hi javascript gurus, I have a simple html file (simple.html) with javascript. In html page there is sentence from variable defined in .js file (myFirst.js). Once I reload another .js file...
19
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
4
by: Lonnie Princehouse | last post by:
So, it turns out that reload() fails if the module being reloaded isn't in sys.path. Maybe it could fall back to module.__file__ if the module isn't found in sys.path?? .... or reload could...
3
by: John Salerno | last post by:
I understand that after you import something once, you can reload it to pick up new changes. But does reload work with from statements? I tried this: from X import * and then did my testing....
8
by: T. Wintershoven | last post by:
Hi all, Is there a simple way in php to reload a page coded within an if statement.(see code below) It's very important that the session stays intact. The filename is RCStudent.php ...
1
by: bernhard.voigt | last post by:
Hey! I'm using ipython as my python shell and often run scripts with the magic command %run: In : %run script.py If modules are loaded within the script these are not reloaded when I rerun...
0
by: Rafe | last post by:
Hi, This seems to be an old question, and I've read back a bit, but rather than assume the answer is "you can't do that", I'd thought I'd post my version of the question along with a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.