Posts marked with "jQuery" in categories

Group Chat In PHP With Users’ Typing Status

I wrote a post on creating Group Chat in PHP. A comment was posted by Ravi asking if it was possible to include user’s typing status. It was a fascinating and a good idea to add user’s typing status. So, I worked on the code and knew it was possible. I’m going to tell you how to implement the display of users’ typing status on the Group Chat I created earlier.... [READ MORE]

Native JavaScript Equivalents of jQuery

If you want to do some little task on your website, you don’t need jQuery. But if you only did work with jQuery, you won’t know the JavaScript functions that do the same thing. I have ran in to this problem and found the real JavaScript functions in replacement of jQuery functions. I’m going to share it with you. This post will continue to expand when jQuery adds new functions.... [READ MORE]

‘return false’ vs ‘e.preventDefault()’ In jQuery

I decided to add some improvements to Open and fix some bugs. While I was adding two submit listeners on a form, it didn’t work. I have tried everything but still the problem came up. So, I removed return false; and used e.preventDefault();. It worked ! So, why didn’t the submit listener called on the element ? The problem was return false will do e.stopPropagation() and e.preventDefault(). If e.stopPropagation() is ran, then any other submit event handlers of the element won’t call.... [READ MORE]

Disable jQuery Migrate Loading In WordPress Blog

If you run a WordPress blog with all the new stuff (functions) and still WordPress loads the jQuery Migrate on your blog, you will be angry (I know hot it feels). The jQuery Migrate file’s minified version is about 7 KB and the unminified version is about 17 KB. That’s a file you don’t need if your blog’s jQuery functions aren’t deprecated. What’s jQuery Migrate ? jQuery Migrate is a JavaScript file that adds the jQuery deprecated functions to the page which makes us to use the deprecated functions of jQuery.... [READ MORE]

Position AddThis Recommended Content Section With jQuery

AddThis smart layer have a recommended content feature that adds a recommended content box to your page. This box is by default will be placed at the end of the page. A normal user won’t notice this. To make the recommended content noticeable, you have to move it to someplace else. But, AddThis doesn’t support the positioning of the recommended content. So, the only way to move the recommended content box is to find a hack.... [READ MORE]

Load Data While Scrolling Down With jQuery & PHP

If your site have a lot of data to display on a page, it will make the page laggy. With this tutorial, you can limit the data on the main page and load new data when user reach the bottom of the page. This makes it easy to show huge data in a single page. Before user reaches the end of page. After user reaches the end of page.... [READ MORE]

Move Cursor To End Of Input Or Textarea In jQuery

The function that moves the cursor of an input element to the end in jQuery is .focus(). But sometimes, this won’t work even if you replace it with [0].click(). It’ll maybe work on input fields properly, but won’t properly at all in text areas. Mostly it won’t work, if you are calling the .focus() function inside an event listener function. To solve this you can use 2 other methods if the first one don’t work.... [READ MORE]

Create Group Chat In PHP With MySQL, jQuery And AJAX

Chatting is one of the most implemented feature on websites. Group chat makes users to share their feelings and other news easily to their friends easily. AJAX makes this chatting more beautiful, elegant, simple and comfortable. Group chats may be vulnerable to SQL injections and XSS attacks. But in this post where we’re going to make a group chat that doesn’t have these vulnerabilities which makes it more awesome. You can see a demo, or you can download the files directly.... [READ MORE]

Parsing sMention Form Data On Server In PHP

In my previous post, I introduced the sMention jQuery plugin – a plugin that adds the @mentions to a input element. But I haven’t told in the post how to handle the data on the server side after the form has been submitted. This handling replaces the @mentions to the user’s name in a[href] tag. It’s made possible using smention function bind as the callback function of preg_replace_callback. This smention function can be seen on the file comps/config.... [READ MORE]

Add @mentions To Input Fields – jQuery sMention Plugin

Mentioning persons using @ is pretty common on social web sites. Facebook, Google+ and even StackOverflow have the @mention feature. They developed it on their own and doesn’t share the code with others. If you are developing a social site, then it’s better to have this mention feature. I wanted this, but the jQuery plugins I found was too big. The first plugin I found was 20 KB ! This made me create a plugin of my own to accomplish my need.... [READ MORE]


By subscribing, you agree with Revue’s Terms of Service and Privacy Policy.


If you found something helpful, please consider a donation to support this site and projects :)





This blog was once on WordPress. Now a static site. See source code on