Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
Like Tree2Likes
  • 1 Post By pmwelec
  • 1 Post By mlseim

Thread: Role of ajax in PHP ?

  1. #1
    Member
    Join Date
    Feb 2017
    Location
    India
    Posts
    35
    Member #
    56118
    Liked
    2 times

    Role of ajax in PHP ?

    Ajax : How to use ajax in php ? Give me a example?

  2.  

  3. #2
    Junior Member
    Join Date
    Mar 2017
    Location
    Bury
    Posts
    1
    Member #
    56310
    Liked
    1 times
    You can out put AJAX in php just the same as you would HTML usually by usning the echo statment
    apptunix1 likes this.

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,359
    Member #
    5580
    Liked
    672 times
    AJAX ... Asynchronous Javascript and XML is a way to communicate with server-side scripts. Those server-side scripts could be PHP or Perl for example.

    It allows you to execute PHP scripts and alter a user's browser without refreshing the web page.

    For a very simple example, go to this website and start typing a name in the text box, example, type "cin" and as you type, it will provide suggestions from a PHP array.
    https://www.w3schools.com/php/php_ajax_php.asp

    The point is, a PHP script is executed without refreshing a web page or reloading a page.

    A client of mine in Nigeria needed a way for people to select a Nigeria State and then, depending on which State is selected, they pick an LGA (Local Government Area) within the State. There are hundreds of LGAs, so this AJAX select makes it easier. This is the demo for that:
    http://www.leamspworldwide.com/chained/
    Last edited by mlseim; Mar 14th, 2017 at 05:08 PM.
    apptunix1 likes this.


  5. #4
    Member
    Join Date
    Feb 2017
    Location
    India
    Posts
    35
    Member #
    56118
    Liked
    2 times

    How Ajax Works?

    Thanks provide me great answer but i want to know How Ajax Works?

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,359
    Member #
    5580
    Liked
    672 times
    It's javascripting actually. You would have to dig into it by looking into it through this route:
    https://www.w3schools.com/php/php_ajax_intro.asp

    Since javascripting is client-side, I'm guessing the software is more within the browser itself. Which is why some older browser versions, old IE for example, don't work.


  7. #6
    Junior Member
    Join Date
    Feb 2017
    Posts
    1
    Member #
    56158


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:32 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com