3 ways to check if object do not contains any properties (is “empty”)
26 April 2013 | Category: JavaScript | Comments (0)
During some tests I found at least 3 ways to check if object “is empty”. I mean, do not contains any enumerable properties. Assuming we have an object[……]
Detect browser cookie third party support using feature detection
10 March 2013 | Category: Browsers, JavaScript, PHP | Comments (4)
So, you want to detect browser cookie third party support.
What is third-party cookies
Basically, third-party cookies are cookies that are set[……]
JavaScript, split and non-breaking space
12 August 2012 | Category: JavaScript | Comments (0)
I created and added pre
element with contentEditable
attribute. I inserted some text with non-breaking space and tried to get text and split using sim[……]
jsCode – re-inventing the wheel
22 April 2012 | Category: JavaScript | Comments (0)
Just started project named jsCode on GitHub some weeks ago. I’m not going to compete in the race to be the best framework. Re-invent the wheel simply[……]
Get value from URL param
2 March 2012 | Category: JavaScript | Comments (0)
Well, this time will be shortly as always. I wanted to get value from some param in URL. After some research this could be done by this code (I use it[……]
How to test if a string is a valid JSON format
2 March 2012 | Category: JavaScript | Comments (0)
Some day I wanted to check if the string is valid of JSON format. After some research I found the solution:
/**
* Function isJSON
* Check if a[......]
What to do if Firebug console is not available
1 March 2012 | Category: JavaScript | Comments (0)
Sometimes in our JavaScript code we use bulit-in console
to view information, errors, etc. But when we close the Firebug then we see the JS errors. Wh[……]
JavaScript and convert HTML characters entities back to regular text
9 February 2012 | Category: JavaScript | Comments (0)
After some research I found the simple solution to convert HTML characters entities back to regular text using JavaScript. The code is simple and fast[……]
JavaScript and get date from timestamp
9 February 2012 | Category: JavaScript | Comments (0)
Have you ever tried to create date from timestamp using JavaScript? After some testing code I found the solution. This is what i use:
var getDateFr[......]
« go back