RELATED TUTORIAL: PHP, MySQL and AJAX CRUD Tutorial – Step by Step Guide! Today I’m gonna give you some code examples on how you can post a form and JSON data using jQuery AJAX. A PHP file will receive the posted data and print the response. I think this is one of the most useful… Continue reading jQuery AJAX Post Example with PHP and JSON
Hi guys! Below are twelve of the jQuery related questions and answers on StackOverflow that I found very useful during development. I opted to compile them here because I feel good reading those brilliant questions and answers by coders from around the world. Enjoy! How would I know if an element is hidden? Sometimes you… Continue reading 12 jQuery Questions and Answers You Should Be Reading on StackOverflow
I’m going to share a working navigator.geolocation.watchPosition() code I used when I wanted the user to know his current location in real time (while he is walking or riding a vehicle). This works while the user is using his Android device or any device with a browser that supports the Geolocation API. We made this… Continue reading Working with Geolocation watchPosition() API
CakePHP Pagination is one of the fastest thing you can code with this amazing framework. In this post I’m gonna show you how you can create a pagination script in matter of few minutes, or even seconds! Cool? Let’s get started. This post is part of my CakePHP tutorial series, before you proceed to this,… Continue reading CakePHP 2.x Pagination Tutorial: Helper, Conditions, Limit, Sorting and More!
A friend asked me how to sum all TextBox value as he type the numbers? Here’s a quick answer to that: Give all your TextBoxes a class name and use the jQuery ‘keyup()’ and ‘each()’ methods to compute the sum. LIVE DEMO HTML – a table where the product name and price TextBox is found.… Continue reading jQuery: Sum TextBox Values As You Type
Have you seen our logo on the upper left corner? Try to hover on it, it will rotate 360 degrees. Looks cool? In this quick post, I’m going to show you how I did that using CSS3. CSS: HTML used: You can also do the rotation in other degrees, not on 360, just change the… Continue reading CSS3 Rotate Image On Hover
PHP Pagination is another very important feature when building any web application. When you grow your data, it must not be displayed on a single page – it can cause a browser hang or very long vertical scroll-bar, so in short, it is not good for the user experience. Video Demo Our final output. Pagination… Continue reading Simple PHP Pagination Script to Handle Your Growing Data
There are some friends who asked me how I did this “back to top” feature of our blog. For a live demo, try to scroll down this page, you will see an “up arrow” image on the lower right corner. When you click it, it will get you to the top of this page. Code… Continue reading Scroll Page to Top Using jQuery