if(!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’) { /* This is one ajax call }
Leave a CommentMonth: April 2016
var sometext = “here is more HTML”; $(“p#text1”).append(sometext); // added after $(“p#text1”).prepend(sometext); // added before
Leave a Commentvar maxheight = 0; $(“div.col”).each(function(){ if($(this).height() > maxheight) { maxheight = $(this).height(); } }); $(“div.col”).height(maxheight);
Leave a Comment$(“a[href=’#top’]”).click(function() { $(“html, body”).animate({ scrollTop: 0 }, “slow”); return false; });
Leave a Comment$(“a”).on(“click”, function(e){ e.preventDefault(); });
Leave a CommentIn this post, you will find practical examples showing how to install and use the zip command to compact and organize files within your file…
Leave a Comment