Skip to content

A full blown PJAX function built for PJAX driven architecture presentations

License

Notifications You must be signed in to change notification settings

Jquery-PJAX/PJAX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PJAX

PJAX uses the innerHTML property of javascript to push through HTML elements of an HTML output to populate the id of a given element with the response html.

As long as you recieve an HTML dump from a given document you can use this function to dump out the html to the desired place on the page.

##WHAT IS BEING PASSED INTO THE FUNCTION?

###href the base URL for requesting the feed to come from
examples: (this.php, that.php)

###url_data variables the server needs to run to use the target, and display the page also
example: (variable1=1&variable2=2)

###target what id is the return going to
example: (
thisID

)

###loads the things that run after the variables are the HTML is updated
example: (

)

##INSTALATION ###DEPENDENCIES: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>

###CALL FOR ANY FUNCTION TO REPLACE DATA: swapContent(href, url_data, target, loads)

About

A full blown PJAX function built for PJAX driven architecture presentations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published