.NET Daily

.NET Daily


Recommendation


Recent Posts


Navigation
CategoryJavascript
Featured

Javascript

How to keep a button disabled until the page is loaded

Posted on May 3rd, 2016.

There are cases when you need to keep a button disabled until the page is rendered. The main reason you may need this is to prevent the user from clicking on a button that is not functional at that point. The easiest way of achieving this is to follow these 2 steps: Disable the button from HTML: [crayon-5a652db7ef35b105004524/] Enable...

Featured

Javascript

Little things that make a big difference in Javascript

Posted on January 24th, 2016.

Since I started working as a front-end developer, I encountered many situations when JavaScript code was buggy or had various issues even though the logic seemed correct. As a beginner it is difficult to follow all the best practices and sometimes can even be confusing, as this topic can be a bit subjective. Of course, there are a few...

Featured

Javascript

JavaScript events applied to a Dropdown control

Posted on February 19th, 2014.

Have you ever tried to dynamically open a dropdown control from a JavaScript event? Well, I’m not going to show you that because for the moment that’s almost impossible. It works only on Chrome browser. I’ve tried several tricks like assigning custom JavaScript triggers to a select tag but nothing worked on other...

Featured

Javascript

How to check and replace a missing image with jQuery

Posted on December 29th, 2013.

There are cases when you want to reference in your website some images from an external source. If those images are displayed on the homepage or in any other visible area of your website then you have to be sure that the external images are always available otherwise the design or the layout of the page might be affected by a connection...

Featured

Javascript

JavaScript events applied on a TextBox control

Posted on June 16th, 2011.

If you encountered before a scenario when you had to make an auto-complete TextBox or to throw certain client-side events based on the actions that user is making on the control and didn’t knew what events to use, here is a list with them along with a short description: (Having in consideration that a TextBox control generates in HTML a...