473,399 Members | 3,919 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,399 software developers and data experts.

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 2586
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Q | last post by:
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...
3
by: micchy | last post by:
Dear everyone, I'd like to know if 'view-source' in javascript can work without reloading the page. (or not calling the page again, just as I right-click in IE) Thanks for your help! micchy
9
by: michael | last post by:
I have many links on a page, but for example sake, these two: <a href="bla1.html" id="link1">bla1</a> <a href="bla1.html" id="link2">bla1</a> I use a Javascript function to change the link...
9
by: chri_schiller | last post by:
My webpage with a free textbook has a simple html navigation. Moving the cursor on the menu item makes appear the menu item red, using onmouseover. If I click that menu item, I get to the new...
4
by: Stefan Mueller | last post by:
I've a webpage with a dynamically created table. If the user presses F5, clicks on the reload button, ... the webpage reloads and the dynamically created table will be resetted. Is there something...
1
by: julian_m | last post by:
I've, inside an html page, an image which is created through a php file : <img src="<?php echo 'captcha.php'; ?>"> file captcha.php, sends header("Content-type: image/png"); All works...
1
by: Flarky | last post by:
Hi all, I have a PHP page that I am reloading using Javascript. The reload happens just fine, but Firefox repositions the part of the page that the user is viewing to back down where the link...
2
by: Mr. SweatyFinger | last post by:
yes this is classic asp, but how do they reload the page without reloading the banner? http://skinet.realestate.gl/public/search/list.asp thanks
3
by: sungung | last post by:
Hi group, I want to back orginal scroll postion after reload page. Is it possible? My situation is call popup windows -enter data on popup -close popup -refresh parent page -reload data. As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.