Create kendo ui tooltip with template and correct position on element click.

0 Comments

Just a code snippet, that shows a tooltip, when the user clicks on a button:     <!DOCTYPE html> <html> <head> <title>RLI research page.</title> <link rel="stylesheet" type="text/css" href="../../../Libraries/Kendo/styles/kendo.common.min.css" /> <link rel="stylesheet" type="text/css" href="../../../Libraries/Kendo/styles/kendo.rtl.min.css" /> <link

Jasmine 2.0 reporting html page.

0 Comments

Just an example HTML page for reporting Jasmine 2.0 tests.   <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Jasmine 2.0 example page.</title> <link href="jasmine.css" rel="stylesheet" /> <script src="jasmine.js"></script> <script src="jasmine-html.js"></script> <script src="boot.js"></script> </head> <body> <script>

JavaScript private, public, shared and instance variables with IIFE.

0 Comments

Just a reminder, when using a Immediately-Invoked Function Expression (IIFE), you can create private, public, shared and instance variables: <!DOCTYPE html> <html> <head> <title>Show public - private - shared and instance variables.</title> </head> <body> <script>

JavaScript DateTime daylight saving pitfall

0 Comments

Be aware, that dates with different daylight saving times, don’t differ by 24 hours per day, but 24 * days + 1 hour or 24 * days – 1 hour:   var app = (function

Disable Application Cache during development on IIS.

0 Comments

In production we use Application Cache, to distribute a new version of a Single Page Application. In development I immediately want to see my CSS, JavaScript and HTML code changes, without changing the “*.appcache” on

Loading HTML fragments with jQuery

0 Comments

When I want to load a html fragment I prefer the contents of the container div in the page and the HTML fragment to have the same ID, like:   Master page <!DOCTYPE html> <html>