Nov 8, 2009

Php Page Reload - reload -reload without flickering

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > PHP Programming

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?

Comment/Reply (w/o sign-up)

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.

Comment/Reply (w/o sign-up)

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>

Comment/Reply (w/o sign-up)



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*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

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
See Also,
advertisement


Php Page Reload - reload -reload without flickering

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com