Category Archives - Programming
Log a user out on closing of a tab or browser
When closing a browser/tab close a session. [javascript] $(document).ready(function () { $(‘form’).submit(function () { $(window).unbind(‘beforeunload’); }); $(‘a’).on(‘mousedown’, stopLinkNav); $(‘a’).on(‘mouseleave’, function () { $(window).on(‘beforeunload’, function () { return ‘Are you sure you want to leave?’; }); }); function stopLinkNav() { $(window).off(‘beforeunload’); } $(window).on(‘unload’, function () { $.ajax({ async: false, url: "logout_ajax.php" }); }); }); [/javascript] PHP…
API Directory – ProgrammableWeb
API Directory – ProgrammableWeb. Lot’s of different api’s might be useful
Grider – Grider is a jQuery plugin to simplify the Master details forms
Generate tables / table forms using jQuery. Grider – Grider is a jQuery plugin to simplify the Master details forms.
JavaScript equivalent of PHP's in_array() – Stack Overflow
[code] function inArray(needle, haystack) { var length = haystack.length; for(var i = 0; i < length; i++) { if(haystack[i] == needle) return true; } return false; } [/code] via JavaScript equivalent of PHP’s in_array() – Stack Overflow.
I can’t open a PowerPoint presentation in 2010
Every time I would open a powerpoint from the network drive I would get a repair error. I unchecked Enable Protected View for internet files in the PowerPoint Trust Issue resolved! I can’t open a PowerPoint presentation in 2010 « PresenterMedia Blog.
Font Awesome, the iconic font designed for Bootstrap
Font Awesome, the iconic font designed for Bootstrap.
How Do I Enable Remote Access To MySQL Database Server?
How Do I Enable Remote Access To MySQL Database Server?.