JQuery is #1 the solution for most of the problems that we encounter when we make a website. Recently I also stuck with a question, how to open all external links in a new window/tab without altering the content posted by the client/website owner . The solution is simple , just add a jquery…Continue reading Open all hyperlinks in a new tab
Category: JQuery
Disable right click using jquery
To disable right click menu using jquery, the following code snippet can be used [javascript] $(document).ready(function(){ $(document).bind(“contextmenu”,function(e){ return false; }); }); [/javascript] Be sure to include Jquery before you write this code 🙂 Demo can be found here Vivek
Browser detection using Jquery
Hi It is very easy to detect the browser using jquery. This code snipt will give you the browser. [javascript] var browser = GetBrowser(); alert(browser) ; }) function GetBrowser() { $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); if($.browser.chrome) return “chrome”; if($.browser.mozilla) return “mozilla”; if($.browser.opera) return “opera”; if($.browser.safari) return “safari”; if($.browser.msie) return “ie”; } [/javascript] Demo can be found here…Continue reading Browser detection using Jquery
How to blink text using Javascript/Jquery
Ever wondered how to blink a text using javascript ? Well, here is the simple way to do using Jquery [javascript] This will blink [/javascript] To blink fast, you can change the speed of the FadeIn and FadeOut function. Demo : http://www.whmphp.com/trial.php Be sure to include jquery in your code 🙂
Check username availability using Ajax/JQuery
I’m loving jQuery now. Yesterday when I was designing a registration page for a client, I decided to use jQuery to check the availability of username to develop my skill. Practice makes a man perfect, isn’t it ? Although the client site requires searching of username on its database, I am not going to include…Continue reading Check username availability using Ajax/JQuery
Cross domain ajax quering with JQuery
For security reasons, we cannot make cross-domain AJAX requests with jQuery. For example, I can’t call the load() method, and pass in ‘google.com’. You may get error message “Access denied” if you try so. Fortunately, I found a solution for this by searching on google. Jquery can only post queries within the same domain. So…Continue reading Cross domain ajax quering with JQuery
Multiple URL shorter using jQuery
JQuery is simply great ! I’ve started learning jQuery just before two days and I’m very much impressed with its functions and simplicity. Especially when the ajax thing comes. For developing my skills , I just completed making a simple Short URL system. I’ve managed to add five url shorter sites in this script. This…Continue reading Multiple URL shorter using jQuery
PayPal Balance on WHMCS Home Page using JQuery
How many times have you been log in to PayPal.com for doing transactions and checking the available balance ? Well, here is a good mod for all WHMCS users. If you are using WHMCS for your billing purposes, you don’t need to login to paypal.com for checking your available balance. All you’ve to do is…Continue reading PayPal Balance on WHMCS Home Page using JQuery
JQuery
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. How many of you have started using JQuery in your projects ? Well, its not too late. Start using jQuery now!