Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery("#body").load("/boby_content")
- // Global functions
- // ajax
- jQuery.ajax({
- type: "POST",
- url: "/articles",
- data: "page=1&per_page=10",
- success: function(msg){
- alert( "Data Saved: " + msg );
- }
- });
- // get
- jQuery.get("/articles", function(data){
- alert("Data Loaded: " + data);
- });
- // post
- jQuery.post("/articles", { parent_id: 7, visible: 1 }, function(data) {
- alert("Data Loaded: " + data);
- });
- // getJSON
- jQuery.getJSON("/articles.js", { page: 1, per_page: 10 }, function(json){
- alert("JSON Data: " + json);
- });
- // getScript - Load JavaScript file and execute it.
- jQuery.getScript("/articles.js");
Add Comment
Please, Sign In to add comment