Pagejax
Pagejax is simply and useful for load pages and submit form for ajax.Auto Load
Using:
Atribute | Value | Require |
---|---|---|
data-pagejax | Your page (To load external page the server must accept cross-domain) | Yes |
id | Element where the page is loaded. | Yes |
Example:
<div data-pagejax="assets/plugins/pagejax/demos/autoload.html" id="autoload"></div>
Link Load
Clik Me
the content will be load here!
Using:
Atribute | Value | Require |
---|---|---|
data-pagejax | none | Yes |
data-pageto | Element where the page is loaded. | Yes |
href | Your page (To load external page the server must accept cross-domain) | Yes |
Example:
<a href="assets/plugins/pagejax/demos/link.html" data-pagejax data-pageto="#link">Clik Me</a>
Form Ajax Submit
Using:
Atribute | Value | Require |
---|---|---|
data-pagejax | none | Yes |
data-pageto | Element where the page is loaded. | Yes |
action | Page send data form | Yes |
method | Post Or Get | Yes |
Example:
<form role="form" action="assets/plugins/pagejax/demos/form.php" method="post" data-pageto="#demo" data-pagejax>