JavaScript - 2014

CSS Media Queries instead of JavaScript code

Using CSS Media Queries instead of JavaScript or JQuery code
0
Before CSS3 coming out, if you needed to change the layout programatically when window size is changed you would have to write a small JavaScript or JQuery to handle window resize event and perform some action on the DOM to addapt your layout. In case you would use JQuery (which is most of the cases as I do not remember last time I wrotw plain JavaScript code) you would have to hook to window resize event and handle every resize. Based on your condition you would apply some CSS to specific element or strip style from it. ...read more

Testing Facebook apps with special permissions

How to make test-able Facebook apps which require special persmissions
0
Social networks are in an expansion and more and more they are becoming part of the applications, especially online applications. Even .NET framework included authentication with social networks built in as an out of the box feature of .NET platform. However as social networks evolve they are changing mostly in the area of security and user data privacy. ...read more

Testing mobile website client side functionality on desktop

Development and testing of mobile websites on desktop
0
Recently I have posted an article about new HTML5 features for mobile devices where some of the new JavaScript APIs are described. If you decide to apply any of these new cool features on your mobile website you would first want to test them before you publish them on the real website. You can always expose the website to you mobile device and navigate, but it really takes additional time and after 10th time you would really get annoyed by doing this. ...read more

Use GitHub for hosting JS and CSS files

How to use your CSS and JS files direcly from GitHub
0
Recently I've started JQuery plugin project on GitHub and decided to provide examples via JSFiddler. I could easily take latest files and host it on the same host as this blog but that would make a headache for me as I would have to update files on my host as soon as I update file in GitHub. So I googled a little bit and found a solution...read more

Request different data type from Web API with JQuery

XML/JSON in return result of Web API REST service method with JQuery
 
0
In my previous article Different data type in Web API response of the same method I described how to get different response with HttpWebRequest in C#. Here I will demonstrate how to achieve the same thing but in JQuery client side code. Since Web API reponds based on accept header value, we can set it in ajax request in JQuery. ...read more

JSON error when loading HTML content with AJAX using $.get

Forcing datatype when loading content with AJAX
0
I'm currently working on a package for Umbraco which involves loading of some HTML forms dynamically with AJAX. Biggest part of the package relies on JavaScript, so everything in script has to be perfect in order to make package work properly. Therefore I started development of JavaScript library independetly of the rest of the package logic...read more

JQuery .onchange issue in IE8

Solution for onchange event in old Internet Explorer versions
0
Apparently IE8 and older versions of IE browsers do not support JQuery onchange event for checkboxes and radio buttons. If you are using this for handling this event, your script will fail, because these events will not be fired on IE8 or older IE. Instead of this you can add handler for onclick event which works fine in pretty much any browser. ...read more

JQuery CDN with fallback strategy

Smart usage of CDN for JQuery and JQuery plugins
0
Content Delivery Network or CDN is really usefull for loading JQuery and especially JQuery UI since it is pretty big script file. They are very ofter reliable, fast and since they can be used on other sites, they might be alrady cached in clients browser if he visited some website which uses the same CDN for JQuery or JQuery UI. There are a lot of CDN providers outhere, but two most common are for sure: ...read more

Dynamic JQuery plugin files load

Improve page load when using multiple JQuery plugins
0
You all probably had to deal with certain js files for JQuery plug-in. Usually developers add reference to a js file in Master page (if using WebForms) on layout view (is using MVC). This practice is not so bad, because you have references maintained in one file, but bad thing is that all js file are being load even if none of then are used on the particular pages. ...read more

.NET

read more

SQL/T-SQL

read more

Umbraco CMS

read more

PowerShell

read more