+ Reply to Thread
Results 1 to 5 of 5

Thread: How to update text while in the midst of running a PHP function?

  1. #1
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    How to update text while in the midst of running a PHP function?

    If anyone has installed IPB or vB you would have seen something like this. How it tells you its either creating a DB or creating a page, or updating DB.

    So my question is how would I be able to do that. Would I need to use JS or AJAX?
    Last edited by diabolo; 07-23-2009 at 05:24 PM.

  2. #2
    zapzack is offline x10 Elder zapzack is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    606

    Re: How to update text while in the midst of running a PHP function?

    You would need to use the xmlhttprequest function in Ajax..

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: How to update text while in the midst of running a PHP function?

    thanks, I was hoping I wouldn't need to learn AJAX or Javascript, but what can you do.

    does anybody know any good tutorials on this subject. and or learning AJAX? I would also search for it myself, but I don't have the time right now

    another question. to learn AJAX do you need to know a heavy amount of Javascript?

  4. #4
    ichwar's Avatar
    ichwar is offline Community Advocate ichwar is an unknown quantity at this point
    Join Date
    Dec 2008
    Location
    NC, USA
    Posts
    1,454

    Re: How to update text while in the midst of running a PHP function?

    No, you don't need a heavy amount of JavaScript to learn AJAX and yes you do need AJAX to dynamically update the text the way (for example) Google does.

    Here's the tutorial I used to learn AJAX. http://www.w3schools.com/Ajax/Default.Asp
    It's really quite easy.

  5. #5
    susen is offline x10Hosting Member susen is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    4

    Re: How to update text while in the midst of running a PHP function?

    Please read this article:
    http://ramui.com/articles/ajax-post-data-example.html
    if u are a beginner then first read:
    http://ramui.com/articles/ajax-techn...roduction.html
    I think this will help you.

+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  2. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  3. please update my php vertion to advance
    By onel0ve in forum Free Hosting
    Replies: 2
    Last Post: 12-23-2008, 04:50 AM
  4. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers