Primary Menu Search
  • About fragged.org

frag   (frăg)

frag (frăg) [..] 2. To completely ruin something.

You are here: Home ∼ Page 2

localStorage and sessionStorage events to send messages acrosss browser instances

Published by Dimitar Christoff on 21 Jun '13 | 1 Response

This is a somewhat underused and lesser known feature of HTML5 localStorage API. The spec says: The storage event is fired when a storage area changes, as described in the previous two sections (for session storage, for local storage). When this happens, the user agent must queue a task to fire an event with the name storage, which does not… Read more →

Posted in javascript | Tagged html5, javascript, localStorage

Epitome now available as npm and under CommonJS

Published by Dimitar Christoff on 20 Jun '13 | Leave a response

Just a quick update, Epitome now supports nodejs. Here’s an example creating a server via express and socket.io with a collection and a model that can be shared on the client as well: #!/usr/bin/env node ‘use strict’; var express = require(‘express’), app = express(), http = require(‘http’), server = http.createServer(app), io = require(‘socket.io’).listen(server); // load mootools globals and extend protos… Read more →

Posted in javascript, mootools, nodejs | Tagged Epitome, mootools, nodejs, npm

Doctor, MD – updated for recess 1.1.8 and BootStrap 2.3.2

Published by Dimitar Christoff on 20 Jun '13 | Leave a response

Just a quick note, updated my nodejs Markdown to HTML site generator Doctor to support the latest recess and BootStrap 2.3.2, latest stable published npm is v0.1.14 The grunt-doctor-md grunt task has also been updated to use doctor-md@0.1.14. $ npm install -g doctor-md $ doctor

Posted in javascript, nodejs | Tagged doctor, markdown, nodejs, npm

Hiding enumerables after MooTools changes prototypes

Published by Dimitar Christoff on 3 Jun '13 | Leave a response

One of the most common complaints of people when using 3-rd party code that breaks on MooTools pages is when somebody incorrectly tries to iterate through an Array with the for (var in) operator and the methods and properties added by the framework also show up. When you cannot change the code to add hasOwnProperty, it leaves you with very… Read more →

Posted in javascript, mootools | Tagged javascript, mootools

Extend Slick pseudo selector to find data-attributes

Published by Dimitar Christoff on 18 Sep '12 | Leave a response

This is a relatively simple idea. Select elements with data-attributes that match a pattern, for example, div[data-media-*]. The problem is, CSS selectors don;t allow you to wildcard attributes themselves so we need to be creative. We will extend the Slick selector engine with a data pseudo selector, which will look at the outerHTML of the element and find a match… Read more →

Posted in javascript, mootools | Tagged motools, slick

Spying unobtrusively on Class instance events in MooTools

Published by Dimitar Christoff on 21 Aug '12 | Leave a response

Ever needed to debug how your Class instances fire Events? It can be frustrating and messy, especially if you do not have access to the original Class prototype source. But, you can hack your way around this and create a transparent spy on all fireEvent methods on any Class instance. Here is how: (function() { var spyId = ‘spyEvent’; Class.extend({… Read more →

Posted in javascript, mootools | Tagged class, fireEvent, mootools

Epitome does todo

Published by Dimitar Christoff on 13 Jul '12 | Leave a response

Just a quick update, my MooTools MVP library Epitome now has its own Epitome-todo repository as a submodule, an implementation of the popular TodoMVC demo. You can see it live here. If you checkout Epitome from git, you can use: git submodule init git submodule update … and point your browser to your local example/todo/epitome/ folder.

Posted in javascript, mootools | Tagged Epitome, mootools, MVC, todo

Epitome goes CI via buster.js and Travis CI

Published by Dimitar Christoff on 6 Jul '12 | Leave a response

Just a quick note – the MooTools MV* framework I wrote for QMetric called ‘Epitome‘ is now covered by Travis CI automated testing. Read more about how to implement this in your javascript projects in this blog post on the QMetric Tech Blog.

Posted in javascript, mootools | Tagged buster.js, mootools, travis-ci

So you want delayed events in your mootools class?

Published by Dimitar Christoff on 13 Jun '12 | Leave a response

I recently found that in the context of Class, .fireEvent() accepts a 3-rd argument, delay. Firing deferred events can be useful but you need to understand the full difference between the patterns available at your disposal. Pattern one. It relies on delay creating a function and passing arguments to that function at the time of invocation. Does not actually fire… Read more →

Posted in javascript, mootools | Tagged fireEvent, mootools

Epitome: an example MooTools model / MVC tutorial

Published by Dimitar Christoff on 11 Jun '12 | Leave a response

I have been a little busy at work but we recently built a small Model class to support our question set and I turned it into a tutorial on how to build your own MV* framework on top of MooTools. It is called ‘Epitome‘ and is available on GitHub here: https://github.com/DimitarChristoff/Epitome. Keep in mind that it may turn out to… Read more →

Posted in javascript, mootools | Tagged mootools, MVC, tutorial
← Previous 1 2 3 … 14 Next →

Popular stuff

  • My apple powerbook died. I hated it anyway 0 comments
  • Preloading images using javascript, the right way and without frameworks 0 comments
  • jsPrintSetup: an AMAZING plugin for firefox that gives extended javascript controls to the printer 0 comments
  • A larger MooTools logo 0 comments
  • localStorage and sessionStorage events to send messages acrosss browser instances 0 comments
  • CSS fun: labels that change colour when their input is focused 0 comments
  • Tooling for the node.js generation, part II 0 comments
  • Manage lazy-loading handlebars / mustache / other templates via MooTools 0 comments
  • About fragged.org 0 comments
  • E-commerce and product search algorithms: get relevant search results, not just random DB dumps 0 comments

Categories

  • ajax
  • css
  • e-commerce
  • fragged
  • games
  • google
  • interviews
  • javascript
    • nodejs
  • mootools
  • PHP
  • SEO / SEM
  • server
  • vista
  • we dislike…
  • we like
  • wireless

Archives

  • August 2017
  • June 2015
  • April 2014
  • March 2014
  • November 2013
  • October 2013
  • September 2013
  • July 2013
  • June 2013
  • September 2012

Account

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Software

Tags

ajax css e-commerce frameworks intermoo interview javascript jquery JSONP modal mootools quakelive seo snippets tutorial

Recent Comments

  • Best JavaScript Frameworks - Angluarjs | Backbonejs | Reactjs on What is a javascript framework and why do I need one, part I

Primary Menu

  • About fragged.org

Copyright © 2021 Dimitar Christoff.

Back to Top