FacebookTwitter

Disable Specific days jQuery UI Date Picker

By on Sep 5, 2014 in Intermediate, JavaScript, jQuery

Enmanuel Corvo

Enmanuel Corvo

Software Engineer at LiveAnswer
Enmanuel Corvo is a Software Engineer experienced in Web Applications Development. Huge fan of Wordpress and an active plug-in author who enjoys writing code and blog posts about anything related to technology. Enmanuel also helps provide cloud solutions and software integrations to enterprise and small business.
Enmanuel Corvo

Latest posts by Enmanuel Corvo (see all)

Disable Specific days jQuery UI Date Picker So I am currently working on a Calendar Plugin, and I have decided to us the very popular jQuery UI date picker for inputing anointments. jQuery UI date picker is a great tool that comes packed with tons of features. If you ever need a date picker this is definably a really good choice. The Challenge As I was working on this side project of mine, I encountered a challenge: I needed to disable specific days in jQuery UI date picker. Ideally, jQuery UI date picker will be use on my project for inputing appointments as I mentioned, and therefore it makes sense for it to only have the available days enabled. So I needed a way to disable just some specific dates in the date picker. I envisioned as passing an array with specific dates to be disabled as well as specific days (8/25/2014, 9/02/2014, etc…). This way you could disable specific dates such as national holidays and also specific days such as weekends. I was able to find some guidance on the web at StackOverflow which I used to work around this problem and create a solution. The Solution Disable Specific days jQuery UI Date Picker ?View Code JAVASCRIPT1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 /** Days to be disabled as an array */ var disabledSpecificDays = ["9-21-2014", "9-24-2014", "9-25-2014", "10-01-2014"];  ...

Creating a jQuery plugin

By on Jan 26, 2014 in Beginners, jQuery

Enmanuel Corvo

Enmanuel Corvo

Software Engineer at LiveAnswer
Enmanuel Corvo is a Software Engineer experienced in Web Applications Development. Huge fan of Wordpress and an active plug-in author who enjoys writing code and blog posts about anything related to technology. Enmanuel also helps provide cloud solutions and software integrations to enterprise and small business.
Enmanuel Corvo

Latest posts by Enmanuel Corvo (see all)

Why Create a jQuery plugin Sometimes its is useful to have a piece of functionality available throughout your code. Maybe you want a single function you can call on a jQuery selector that performs a specific action on such selector. Or maybe you wrote a utility function in one of your projects and now you want to be able to move it easily to other projects. In any case writing a plugin is your best option. jQuery is great. It’s cross-browser, easy to learn, and helps you make very user-friendly interfaces. It also comes with a lot of useful plugins to do almost whatever you want. But sometimes a lot is not enough, what if you can’t find just the right plugin to suit your needs? Or maybe there exist a plugin but its too large, and you just want part of it. The solution might be to roll up your selves and write your own stuff. After all it sound more complicated than it really is. This short tutorial will go through the process of writing a simple plugin, adding some options, and even perform a callback. Setting Up You can download the entire project from GitHub here For this tutorial, we will be creating a simple accordion plugin. Let’s create a js file and put it in the “js” directory of our website. It’s tradition to start all js plugin’s files with “jquery dot” followed by the actual plugin name, so we’ll call ours “jquery.simple-accordion.js”. – Our...

Choosing a text editor – what are my options?

By on Jan 25, 2014 in Beginners, CSS, HTML, jQuery

So you want a text editor, cool let’s talk about text editors. As you start working more hands on with code: HTML, CSS, Java Script and any other language, you are going to want to use a good text editor because notepad simple doesn’t do the job any more. So… choosing a text editor, where to start? There are a few things to take into consideration when choosing a text editor, you want something that is reliable, easy to use and popular. Popular because that mean there is going to be tons of support and blogging  about using that editor, in addition to possible open source add ons. But at the end of the day it all comes down to personal preference, what ever makes you happy. So I have put together a list of good text editors I have used in the past, hope this helps you find your way to the perfect text editor. Sublime Text 2 Platforms: Windows/Mac/Linux Sublime Text 2 is a sophisticated text editor for code, html and prose. You’ll love the slick user interface and extraordinary features. Sublime Text 2 is a great text editor, it is actually one of my favorites text editors. I has many nice features that definably makes writing code easier. One of my favorite thing about Sublime Text 2 is that you can install all sorts of open source plugin. One of my favorite plug in is ZenCoding (really makes HTML coding a lot easier) read more about...