Jul 20, 2008

Php Page Reload - reload -reload without flickering

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Php Page Reload - reload -reload without flickering

2091
hi there!

i'm writing a chat, with the problem, [my english isn't very well #cause i'm from austria/vie] that the user must click on reload.


chat looks like this:


__________________________________
|Username Text (in color of user) |
| |
| |
| textwindow |
| |
| |
| |
|----------------------------------------------|
| Messagebox send reload |
| |
|__choosetextcolor__________________|

and the upper window [chat_out.php] i need a page reloading system, so the user will see whats new in the mysql-database


anyone can help me?

Reply

Inspiron
You will need to integrate AJAX (Asynchronous JavaScript And XML) to your PHP scripts to prevent flickering on page reloads.

Read this for more information
http://en.wikipedia.org/wiki/AJAX

Also browse it's tutorial pages to find out how you can implement AJAX to your script.

Reply

gaea
If you don't care so much about slight flickering you could load your chatscript into the main page using an iframe.

The code to reload the page automaticly would look something like this:

CODE
<html>
<head>
<title>Auto Reload</title>
<script language="JavaScript">
<!--
var time = null
function move() {
window.location = 'http://www.YourSite.com/URLofIframe.html'
}
//-->
</script>
</head>
<body onload="timer=setTimeout('move()',3000)">
<p>The second argument (3000) is the amount of time in milaseconds to wait.
</body></html>

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. reload page in php - 5.22 hr back. (1)
  2. php reload page - 7.78 hr back. (2)
  3. back reload page - 11.08 hr back. (1)
  4. reload page php - 17.44 hr back. (1)
  5. reload php page on timer - 24.18 hr back. (1)
  6. reload page from server - 25.76 hr back. (1)
  7. http://page reload php - 29.75 hr back. (1)
  8. reload page php - 9.67 hr back. (3)
  9. back to top without page reload - 34.79 hr back. (1)
  10. php reload - 36.47 hr back. (1)
  11. reload a page using php - 36.62 hr back. (1)
Similar Topics

Keywords : php reload reload reload flickering


    Looking for php, page, reload, reload, reload, flickering

Searching Video's for php, page, reload, reload, reload, flickering
advertisement



Php Page Reload - reload -reload without flickering



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE