vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How do I refresh a php page using AJAX? (https://vborg.vbsupport.ru/showthread.php?t=173549)

m002.p 03-19-2008 10:03 PM

How do I refresh a php page using AJAX?
 
Hello everyone,

I would appreciate an experts assistance on this question.

How do I refresh a PHP page every minute for example using AJAX technology? Ive looked on the web for tutorials but they mainly seem to be "how to auto refresh a page".

I know how to do that, but I want to utilise AJAX to automatically refresh a PHP page containing MYSQL data without the viewer noticing the page has been updated ;)

I hope im clear & any help is much appreciated :)

Matt

Dismounted 03-20-2008 10:15 AM

Refreshing the page would defeat the point of AJAX ;). I think you mean you want to update data within the page without "refreshing" the page. This would be done using a counter via Javascript to count an interval, then sending an AJAX request to your script, which fetches and spits out the data. The data then comes back to the browser, at which your Javascript will take over and parse/insert the info into the page.


All times are GMT. The time now is 02:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01076 seconds
  • Memory Usage 1,704KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete