Skip to content
/ AJAPH Public

This class makes use of Ajax easier. It allows you to make asynchronous (default) or synchronous request.

License

Notifications You must be signed in to change notification settings

pH-7/AJAPH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AJAPH

Overview

This class makes use of Ajax easier. It allows you to make asynchronous (default) or synchronous request.

How to use this

Please see the small example I did in the example folder. You can also do your testing in here.

Example

  • HTML Code:

      <h1>The Member(s):</h1>
      <div id="data"></div>
    
  • JS Code:

      // Create object
      var oAjax = new AJAPH;
      
      // GET method
      oAjax.send("GET", "member_search.pl", "sex=m&active=1&age=18").setResponseHtml("data");
      
      // POST method
      oAjax.send("POST", "member_data.pl", "user_id=2939&visible=y").setResponseHtml("data");
    

Attention, you need JavaScript after the HTML id that must receive the data otherwise it will not work because JavaScript will not find the html ID.

Author

Pierre-Henry Soria

License

General Public License (GPL) 3 or later.

About

This class makes use of Ajax easier. It allows you to make asynchronous (default) or synchronous request.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published