RELATED TUTORIAL: PHP, MySQL and AJAX CRUD Tutorial – Step by Step Guide! This post will show you JavaScript POST request examples. This is useful if you want to submit a form using HTML and JavaScript. A PHP file will receive the posted data and print the response. I think this is one of the… Continue reading JavaScript POST request example
Tag: ajax
12 jQuery Questions and Answers You Should Be Reading on StackOverflow
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
Working with Geolocation watchPosition() API
I’m going to share a Geolocation watchPosition() API example. This 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… Continue reading Working with Geolocation watchPosition() API
CakePHP 2.x Pagination Tutorial: Helper, Conditions, Limit, Sorting and More!
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!
Sum textbox values using JavaScript
A friend asked me how to sum textbox values using JavaScript? He wants to do this 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… Continue reading Sum textbox values using JavaScript
CSS3 Rotate Image On Hover
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
Simple PHP Pagination Script to Handle Your Growing Data
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
Scroll to top of page in JavaScript
Today I’ll show you how to scroll to top of page in JavaScript. There are some friends who asked me how I did this “back to top” feature of our blog. Imagine you scroll down this page, you will see an “up arrow” image on the lower right corner. When you click it, it will… Continue reading Scroll to top of page in JavaScript