Archive

Category Archives for "Javascript"

Broken Image Handling

How to do Broken Image Handling with Jquery? Missing images will be an annoying problem for many websites. Either it will display nothing or just a question mark style depending on the browser you are using. There is a better solution to display a no image if there is a broken image.  Or you may want to […]

Continue

Send form elements via ajax in jquery by serialize method

If you have a form with numerous fields and want to send those fields via ajax. Here comes the easy way, use the serialise in jQuery. Follow the examples var post_form:$(“#daily_checklist_form”).serialize(); $.ajax({ method: “POST”, url: “someurl.php”, data: { data:post_form } }) .done(function( msg ) { //alert( “Data Saved: ” + msg ); }); And next […]

Continue

SmartMenu : Responsive jQuery Mega Menu

SmartMenu is a user-friendly, highly customizable and responsive jQuery mega menu plugin. It allows you to use multiple menus with different sub menus. These days the mega menus are very  much popular as they can contain more data than conventional popup menu. Main Features Responsive design Horizontal (top, bottom) or Vertical (left, right) menu layouts […]

Continue

jQuery SVG Progress Plugin

This is a unique jQuery plugin that allows you to display infographics on your web pages in a variety of shapes to be precise about six. Dimensions of each figure are based on the container it exists. One of the main advantage is the plugin is its weight, it’s just 5KB!.    

Continue

Open a URL in a new tab using JavaScript

Opening a URL in new tab using JavaScript, below snippet will do the trick function OpenInNewTabWinBrowser(url) { var win = window.open(url, ‘_blank’); win.focus(); }function OpenInNewTabWinBrowser(url) { var win = window.open(url, ‘_blank’); win.focus(); } You could do it this way calling a direct function, or by adding an event listener to your DOM object.  

Continue