Wiki 42

Search
Skip to content

Monthly Archives: February 2014

jQuery, Wordpress

WordPress jQuery document ready

2014-02-10 Tomislav Vlahović Leave a comment
jQuery(document).ready(function($){
// now you can use jQuery code here with normal $ shortcut formatting
});

 

JavaScript

trim whitespace

2014-02-10 Tomislav Vlahović Leave a comment
if(typeof(String.prototype.trim) === "undefined")
{
    String.prototype.trim = function() 
    {
        return String(this).replace(/^\s+|\s+$/g, '');
    };
}

The trim function will now be available as a first-class function on your strings.  For example:

" dog".trim() === "dog" //true

 Source

 

 

JavaScript

Javscript Garden

2014-02-05 Tomislav Vlahović Leave a comment

http://bonsaiden.github.io/JavaScript-Garden/

Wordpress

Standalone wordpress

2014-02-04 Tomislav Vlahović Leave a comment
$path = $_SERVER['DOCUMENT_ROOT'];
include_once $path . 'wp-load.php';
Bookmarks

Bookmarks 2014-02-04

2014-02-04 Tomislav Vlahović Leave a comment
  • HTML 5 range slider
  • Centering a DIV
  • C# Tutorials
  • Kettle.js – A rapid, bottom-up approach to developing Backbone views.
  • Nightwatch.js – Browser automated testing done easy. Write efficient and straightforward Javascript End-to-End tests in Node.js which run against a Selenium server.
  • Smartspender — designing a stylish app for tracking your spending habits
ExtJS

Extjs, IE compatible getStore

2014-02-03 Tomislav Vlahović Leave a comment

Uvijek ovako postavi Store, jer ga jedino tako IE 11 prepoznaje

Ext.data.StoreManager.lookup('Nvision.store.Devices')

 

dz42 Wiki & Knowledge Base

Recent Posts

  • Move WordPress to a New Domain Without Losing SEO
  • Sublime preferences
  • 2016 – Books read
  • Defeat annoying copy&paste blockers
  • msql is in bounds search

Recent Comments

    Archives

    • November 2016
    • January 2016
    • November 2015
    • October 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • July 2014
    • June 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • November 2013
    • October 2013
    • September 2013
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013

    Categories

    • Asp
    • Bookmarks
    • Books
    • Django
    • Docker
    • ExtJS
    • Facebook API
    • Geek
    • Graphics
    • JavaScript
    • jQuery
    • Linux
    • Modding
    • MySql
    • PHP
    • PostgreSQL
    • Python
    • Sublime
    • Uncategorized
    • Windows
    • Wordpress

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    Proudly powered by WordPress