470,862 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,862 developers. It's quick & easy.

This is going to sound stupid but... Reload PHP without reloading page?

jbj
Something like a php function that can be called? I have php in a
page that needs to be update periodically (basically poll results)
without reloading the page around it (I do have a button you can
click). Is this possible? Or should I make some sort of Iframe with
the php page in it that could be reloaded.

The php code basicaly just writes a table to the page with the results
of the polls included. Thanks for the help.
Jul 17 '05 #1
3 2481
jbj wrote:
Something like a php function that can be called? I have php in a
page that needs to be update periodically (basically poll results)
without reloading the page around it (I do have a button you can
click). Is this possible? Or should I make some sort of Iframe with
the php page in it that could be reloaded.

The php code basicaly just writes a table to the page with the results
of the polls included. Thanks for the help.


Once you output to the browser it has control, the server can't initiate
anything else unless you have some client side interface (curl,
javascript, activex, java, flash, etc ...) that takes care of the updating.

So either a <meta refresh ..>, javascript or a button to reload the
page as needed. Your Idea about the Iframe (frame or layer) might be the
best approach.

Hope to have helped!
Jul 17 '05 #2
jbj wrote:
Something like a php function that can be called? I have php in a
page that needs to be update periodically (basically poll results)
without reloading the page around it (I do have a button you can
click). Is this possible? Or should I make some sort of Iframe with
the php page in it that could be reloaded.

The php code basicaly just writes a table to the page with the results
of the polls included. Thanks for the help.


An Iframe is you best bet. You can have it automatically refresh
whenever you want with javascript.
-JI
Jul 17 '05 #3
jbj wrote:
Something like a php function that can be called? I have php in a
page that needs to be update periodically (basically poll results)
without reloading the page around it (I do have a button you can
click). Is this possible? Or should I make some sort of Iframe with
the php page in it that could be reloaded.

The php code basicaly just writes a table to the page with the results
of the polls included. Thanks for the help.


Try this: http://www.ashleyit.com/rs/techniques.htm
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Q | last post: by
3 posts views Thread by micchy | last post: by
9 posts views Thread by michael | last post: by
1 post views Thread by julian_m | last post: by
1 post views Thread by Flarky | last post: by
2 posts views Thread by Mr. SweatyFinger | last post: by
3 posts views Thread by sungung | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.