Php Page Reload - reload -reload without flickering

free web hosting
Open Discussion > CONTRIBUTE > 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?

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.

Recent Queries:-
  1. php reload page without flicker - 0.07 hr back. (1)
  2. "page reload" php timer - 0.98 hr back. (1)
  3. automatically reload php - 5.40 hr back. (1)
  4. reloading page using php - 5.99 hr back. (1)
  5. to reload the entire site in php - 6.41 hr back. (1)
  6. how to reload page using php - 7.04 hr back. (1)
  7. php reload current page - 1.04 hr back. (2)
  8. php realod page - 17.06 hr back. (1)
  9. php reload page - 0.74 hr back. (6)
  10. body reload back - 19.26 hr back. (1)
  11. web pages reload time - 24.05 hr back. (1)
  12. request a page reload using javascript and php - 43.40 hr back. (1)
  13. reload page php html - 44.57 hr back. (1)
  14. reload page php - 2.15 hr back. (7)
Similar Topics

Keywords : php, page, reload, reload, reload, flickering

  1. I Can't Find The Password Reset Page... [resolved]
    (5)
  2. Cant Log Into Cpanel [resolved]
    Page cant be displayed (11)
    Help I can not log into cpanel. I just upgraded to IE-7 and now I can not get into my Cpanel. what
    the page is telling me is this. QUOTE Internet Explorer cannot display the webpage Most
    likely causes: You are not connected to the Internet. The website is encountering problems. There
    might be a typing error in the address. What you can try: Diagnose Connection Problems
    More information This problem can be caused by a variety of issues, including: Internet
    connectivity has been lost. The website is temporarily unavailable. The D....
  3. My Ro Page
    (4)
    I designed my own website and code it xD this website is for my server JevilRO www.jevilro.com....
  4. Plot Page Help Invisionfree
    (0)
    I've made a few boards with invisionfree before, but I have no idea of what a plot page is or
    how to make one. can someone help me out?....
  5. Page Load Error When Trying To Get Into Control Panel
    I just changed domain (2)
    I had put a domain name that I didn't have when I registered my website. I got the 15 credits
    and changed it to a subdomain. Now I can't log into my control panel. At first it was telling me
    I had the wrong password which I'm sure I don't. Now I just get a timed out error. Also my
    confirmation email for changing my domain was kinda blank. QUOTE Hi, This mail is to notify
    you that your domain has been changed to : Regards, trap17.com So yeah... any help? EDIT:
    Also I don't see my request to change domain the proper forum I had attempte....
  6. Php Linking
    Ned help to do this through a internal portal page. (2)
    OK I'm trying to create an internal php page to link to my main sites index.html page.
    Here's the code that's automatically generated when I click on the Create Php page link.
    CODE <?php /* Write code inserting output inside variable $content as in following
    example. You have DB connection, all global vars and all MKPortal and Forum functions at your
    availability */ $nome = $mkportals->member['name'];
    $content="Hi $nome"; So, how would I change this so it links to my sites
    index.html page? PS I....
  7. Web Page Designing
    (5)
    as a beginner how we can start to learn web page designing....
  8. How To Implement A Date Picker On A Web Page
    (0)
    Some pages may need users to input date values. It would be nice if the users just need to click and
    pick and done. This way we may also eliminate the possible input errors. Below is the code I used to
    implement this. You may want to save it as datepicker.js for other web pages to use. I also attached
    3 files for you to download. All you need to do is unzip the 3 files to a directory under any web
    server and start trying it. If you are using jsp, you can refer to the submited field by adding
    something like request.getParameter("date1") to your page. If you're using....
  9. Redirecting Visitors To Different Page
    Explains two methods. (8)
    Well, almost all of you would have experienced redirecting pages while you were downloading
    something on the net. Redirecting users to new pages is a fact of life when programming dynamic
    websites. The primary reason is that you often need to redirect a user after making session state
    changes. For example, when you add an item to a shopping cart, you want the user to go to a page
    such as the current shopping cart, and you don't want to add another one of the same item to the
    cart again if you reload that shopping cart page. The same case if you developed guestbook w....
  10. Naming Web Page Files
    Which way you like- MyPage.html or my-page.html or my_page.html (9)
    Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
    etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
    talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
    am going to express my views and want to know what you think is correct. I have seen pages named in
    various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
    think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
  11. PHP Function To Add Previous and Next Page Feature
    useful php function (5)
    CODE <?php function navigationbar($start_number = 0, $items_per_page = 50,
    $count) {    // Creates a navigation bar    $current_page =
    $_SERVER["PHP_SELF"];     if (($start_number < 0) ||
    (! is_numeric($start_number))) {         $start_number = 0;     }
        $navbar = "";     $prev_navbar = "";     $next_navbar =
    "";     if ($count > $items_per_page) {         $nav_count = 0;
            $pag....
  12. Need Help To Increase The Page Rank Of Website!
    (2)
    Hi everybody, I am dealing in online business and looking for some tips to increase the page rank of
    my website. In this I need some helps from you people. Please suggest me some tips so that I can get
    good traffic to my website and get more benefits. Your any suggestion will be highly appreciated.
    Thanks in advance! ....
  13. Adding Flash Music Player To Home/any Page
    How-to (put any song you want!!!) (4)
    Want to put music on all pages (near the top)? Want any song you want? Well heres how! Place the
    following IN PLACE of the tag (paste in while thats highlighted. The text in red you HAVE to
    replace with the song url. The text in green is OPTIONAL (whether you want it to autostart or not.
    Right now it doesnt, if you want it to replace no with yes.) Of course place this in Admin
    Cp>>>Skinning and Styles>>>Board Wrappers>>>Header and Body QUOTE REPLACE THIS
    WITH YOUR SONG URL &autoStart= no " /> src="http://www.podbean.com/podcast-au....
  14. Page Load Error When Accessing Cpanel
    (0)
    Not sure what the issue is. I cannot even load up any of the cpanel's to allow me to put in a
    password. I have tried the link that is located in the Credit System 2.0 I have tried the links
    with subdomain/cpanel I have tried the links with subdomain:2082 All 3 of these just give page
    load errors. Please note : This isn't a "my password doesn't work" thread. This is a "I
    can't even get cpanel to TRY to load" thread. Thanks in advance.....
  15. How Do I Get Rid Of The Placeholder Page? [resolved]
    (5)
    QUOTE Great Success ! Apache is working on your cPanelŽ and WHM™ Server If you can
    see this page, then the people who manage this server have installed cPanel and WebHost Manager
    (WHM) which use the Apache Web server software and the Apache Interface to OpenSSL (mod_ssl)
    successfully. They now have to add content to this directory and replace this placeholder page, or
    else point the server at their real content. ATTENTION! If you are seeing this page instead of
    the site you expected, please contact the administrator of the site involved. (Try sending ....
  16. How To Make An Item Scroll With You On The Page.
    (10)
    ok im not sure where or how to really ask this... but you can find an example at
    http://www.demonoid.com the ad that is on the right side scrolls with you basically to the bottom
    of the page. I know they use an iframe but can you show me how that works or what makes it do that?
    i tried to copy the source and css but it did not work.. any advice?....
  17. What Is Your Home Or Start Page?
    (19)
    I've had Yahoo! as my start page for many years. I'm wondering if there's a better
    start page out there. I remember using Excite several years ago, but their home page now looks
    outdated. Do you design your own start pages? If so, what's on it?....
  18. Create Page?
    How? (11)
    Hi, everyone! I need to create a script just within a page. Read the following story: I have
    an account at one of file sharing hosts. I am tired of every time log in and tell others what I have
    at it (files). If there is way to create a script that logs in me and just list the files i have
    on this account from specified folder. If you know, let me know as usual.....
  19. Web Page Tree Menu: Style Sheet - Javascript
    (6)
    I got bored and lazy working on the things that I should do... so I end up creating this tree menu
    for anyone to use if they find it interesting. Well the idea is to create a tree menu in a webage.
    Instead of those linear menu it would be better to add more dynamic to your webpage with a tree
    menu. Others use image rollovers. As expecte the tree menu should behave like the one in Windows
    Explorer. When you click a node depending on its state it will pull down or pull up its chlid nodes.
    I have achieved by exploiting one style sheet property, display . Basically this s....
  20. Google Page Creator Updated
    (4)
    Google Page Creator currently enables Google Account holders to create single pages, with up to
    100MB of storage. The company provides a free URL at http://username.googlepages.com to access the
    pages a user creates. Google says Page Creator does not currently support making full "sites" of
    content. Creating a page using the service requires just a few mouse clicks, and although it's
    still an early beta release, industry analysts and pundits say it already shows promise. "From the
    Page Manager, click on the title of the page you want to edit. This will take you to ....
  21. Scrolling Images?
    How to Make an Image Scroll With the Page (5)
    I'm trying to make my homepage look a little fancier and I've got a nice background image,
    but I want it to scroll with my page, like if you scroll down the image will still appear like it
    does on the top of the page. Can someone tell me how to do this? I'm using Microsoft Frontpage
    to edit it. I'm not sure what programming language this would be, probably CSS or Javascript,
    but I can edit the page script with Notepad or something to make this work. Right now the page is
    purely HTML, so whichever language this is, can somebody also give me the tags and ma....
  22. Help In Ipb 2.1.6 Portal Page
    plaese help me (1)
    hi any 1 know how can a add my topics in ipb poratl page in my server i uploaded ipb 2.1.6 plaese
    tell me. like this site.....
  23. Wap Source Code Viewer
    Mobile/wap source code viewer page (4)
    This is a source code viewer that will workl on wap/mobile sites but you can easily convert it to
    work on web im sure ;-) CODE <? header("Content-Type:
    text/vnd.wap.wml"); echo '<?xml version="1.0"
    encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
    "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head><meta
    http-equiv="Cache-Control" content="no-cache"
    forua="true"/></head> <card title="s60.nerds.....
  24. Google To Take On Geocities
    Google Page Creator (53)
    Well I just found out about a new webhosting service offered by Goolge, the highly imaginatively
    titled Google Page Creator, its your basic (ie not very good) free webhosting services, with the
    massive advantage of its name being preceded by the all powerful Google. I havent extensively used
    the service but I will atempt a brief overview of the service. The basic service consists of the
    usual what you see is what you get (WYSIWYG), which is allows novice users to create pages with no
    knowlegde of HTML (I'm sure you all know ho wthey work). It comes in the usual temp....
  25. Problem With Page Redirect
    Help me out with this problem... (8)
    hey ppl, i just wanted a little help...i designed this website, but i want that if i click on
    certain link, it should open new page for few seconds and then browser should automatically redirect
    me to some other page....i tried this with header() function but i couldnt do the wait n redirect
    part, ... so somebody plz help.... -thanx in advance! Thanks Avalon, topic changed. ....
  26. Refresh Page After Back Button Hit
    (11)
    Hi. I have a page that is dynamically build through DOM manipulation. So, when I browse outside the
    page, and then click back, those dynamically created DOM objects are gone. Since I am also using JSP
    / Servlet technology, I can rebuild this page easily, which I have done. Here is my dilemma. If
    the user leaves the dynamic page, then clicks back on their browser, I need the page they are going
    back to to refresh. I can't figure out how to do this. I've tried using the META tag, but it
    won't do it. Help would be appreciated. Thanks. ....
  27. Open Php Page From Another Server
    If a server does not support php (7)
    If web server does not have .php support and I want to put a guestbook or something similar (no
    database), and there is no support for other server side scripting, what should I do? I would not
    like frames on my page, but - is there a possibility to put .php page from another site into layer
    on my webpage at the no-php-site? Does layer support (or any other html command, excluding frames)
    page including from another server? Also, does anybody have a solution for this any other way? How
    to make a guestbook without php, perl, other scripting languages? Or, how control (r....
  28. Button To Print Current Web Page
    (14)
    Hi, Does anyone know how to create a button that will printo out the current page. What I want to
    do is have the user fill out a form (containing name, address, zip, etc). They will then click on a
    "print" button and it will print out the form data. Any ideas? Thanks.....
  29. Refresh Web Page
    (6)
    Well this questioned wasnt answered in 2003 but hopefully somebody knows the answer, sorry if this
    is a simple question but can i force the web browser to refresh the page after pressing the submit
    button. Basically my cgi perl form copies a different jpeg with teh same name into my public_html
    folder every time the form is submitted, therefore i have to click on the refresh button in IE to
    see the different picture. I have tried Code: but it doesnt seem to work in IE6 ....
  30. Php Unique Hit Counter
    Count page hits with php. (29)
    Hello all, Here is a neat and helpful PHP script that can count unique page views on your website.
    First you need to open up a new page in your text editor and paste in this code. CODE <?php
    $filename = "hits.txt"; $file = file($filename); $file =
    array_unique($file); $hits = count($file); echo $hits; $fd
    = fopen ($filename , "r"); $fstring = fread ($fd , filesize
    ($filename)); fclose($fd); $fd = fopen ($f....

    1. Looking for php, page, reload, reload, reload, flickering

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for php, page, reload, reload, reload, flickering

*MORE FROM TRAP17.COM*
advertisement



Php Page Reload - reload -reload without flickering



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
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