473,231 Members | 1,769 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,231 software developers and data experts.

update without reloading browser

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
Jul 17 '05 #1
4 2747
J. J. Cale wrote:
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

Short answer no.

Slightly longer answer.

Remember you are working in an asynchronous environment. The information
displayed on a browser client is a snapshot of the wrold the webserver
sees when the page is requested.
Well, its not quite that simple but you get the idea hopefully, if the
information needs to be refreshed then the server has to be asked for
the page again.
Jul 17 '05 #2
Following on from J. J. Cale's message. . .
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

Not really. For example you couldn't update the table _display_.
But you can use javascript on say a link or a input field's OnBlur()
event to open another window, process some PHP in there then close the
new window. But the original page won't budge unless you force a
reload.

I have used flying screens but only for access to a
search-a-table-then-select-box for inputting. eg The
searchable/sortable product catalogue listing opens up _if_ the focus
reaches a suitable input. Or alternatively it can be used to validate
input before submitting the whole screen. Combine the two if you want
to do something like: (1) Pick this product (2) Select delivery options
(2a) Validate delivery option is suited to product (3) More input...
(4)Submit. However it is a fiddle with lots of things to go wrong and
you may be better redesigning the sequence.

I've written an article on the subject of flying screens with some
examples which I could send you on request.
--
PETER FOX Not the same since the borehole business dried up
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
Jul 17 '05 #3
noSpam wrote:
J. J. Cale wrote:
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

Short answer no.

Slightly longer answer.

Remember you are working in an asynchronous environment. The
information displayed on a browser client is a snapshot of the wrold
the webserver sees when the page is requested.
Well, its not quite that simple but you get the idea hopefully, if the
information needs to be refreshed then the server has to be asked for
the page again.


And another answer:

As JJ said, you can't do that with PHP. What you need is Javascript,
specifically HttpXmlRequest, which can do it for you.

HTH,

Berislav
Jul 17 '05 #4
Berislav Lopac wrote:
noSpam wrote:
J. J. Cale wrote:
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


Short answer no.

Slightly longer answer.

Remember you are working in an asynchronous environment. The
information displayed on a browser client is a snapshot of the wrold
the webserver sees when the page is requested.
Well, its not quite that simple but you get the idea hopefully, if the
information needs to be refreshed then the server has to be asked for
the page again.

And another answer:

As JJ said, you can't do that with PHP. What you need is Javascript,
specifically HttpXmlRequest, which can do it for you.

HTH,

Berislav


Agree, however what ever mechanism is used to refresh the page be it
Java script VB Script etc it still requires a new request to the server.
Jul 17 '05 #5

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

Similar topics

6
by: Nik Coughlin | last post by:
How can I partially update a page using javascript if javascript is available, but do a full update if it's not, using php?
8
by: Aspersion | last post by:
I'm building an ASP page that has a lot of text and graphics. There is a calculation facility on the page. The user enters several numbers in a form and presses a button to see the calculated...
3
by: Bernhard | last post by:
Hi, does any of you know a way how to set window.location without automatically reloading the page? I heard of one, but for this i must alter the configuration of the browser! I suspect that...
1
by: Mad Scientist Jr | last post by:
How do you get a ASP.NET page to return nothing, so the page posting form data to it doesn't reload? I have tried all combinations of the following: Response.SuppressContent = True...
54
by: VK | last post by:
Mission statement: A mechanics to get text stream into browser from any Web location without reloading the current page. 1) This mechanics has to support *at the very least* IE 5.5 and higher...
0
by: UnkleVo | last post by:
Hello all, We have a form that contains browser control on it. Into that control we load some java applet that acts as an image viewer. On the form load we load the list of documents each with...
4
by: Joerg Gempe | last post by:
Hello, I've a problem where some data gets updated but I don't know which process (SP) is responsible for it (it's an old installation which I've taken over). Is it somehow possible to know...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.