Quantcast
Browsing all 43 articles
Browse latest View live

What is the correct usage of blueprint-typography-body([$font-size])?

Recent convert to RoR and I've been using Compass w/ Blueprint to dip into the proverbial pool. Compass has been fantastic, but I've come across something strange within the Typography library.The...

View Article


WCF and FluentNHibernate

I've hit a wall on this one. I have a WCF library with a respective WCF web service. A sandbox web application attempts to fire one method from this service.The service, however, will log requests as...

View Article


Answer by Alexis Abril for Combining templates to be used with backbone js

Similar to stusmith's suggestion, you can use StealJS to compile EJS templates(or any js file).Within your app files you can setup dependencies, such as your templates and other...

View Article

Answer by Alexis Abril for How to bubble custom jQuery event to window.document?

I think you're looking for calling $.event.trigger manually:$.event.trigger('myCustomEvent', someDataObj, someDomElement, false);The last parameter is used for the "onlyHandlers" flag, false in this...

View Article

Answer by Alexis Abril for Compare an array element to particular string of...

It looks like you're using jQuery already, which has an $.inArray() utility method.

View Article


Answer by Alexis Abril for How to unbind events for specific keys

I would recommend debugging to find where these events are bound(or even if they're bound). If these are bound with jQuery, they will be viewable via .data();eg, in a...

View Article

Answer by Alexis Abril for Javascript Add Event Listener for change in Audio...

You're looking for the "volumechange" event.var audio = document.getElementById('sample');audio.addEventListener('volumechange', function() { console.log('changed.', arguments);}, false);I'm using the...

View Article

"Stop running this script" - IE for large AJAX requests

I'm using jQuery.getJSON(...) to make a call/process response for a slightly large data set. The response time being a couple of seconds is expected(there's an animated loading graphic to placate the...

View Article


Answer by Alexis Abril for What is can.Control in canJS and why is it needed?

can.Control is the "Control" part of the MVC framework. You can use it to create modular widgets of any kind.http://canjs.com/docs/can.Control.html

View Article


Open/Close NHibernate Session

Using FluentNHibernate in a web application, I've created a singleton SessionFactory class to have the ability of the following:SessionFactory.Instance //returns ISessionFactoryIs it common/best...

View Article

Answer by Alexis Abril for Can you use non-AMD libraries with RequireJS?

You sure can. RequireJS has a "shim" option in its configuration for just that: If it has any dependencies, you can list them here and export the global your legacy file usually produces.

View Article

Answer by Alexis Abril for How does Firebase javascript .on('value')...

You can use websockets to achieve this functionality. Checkout FeathersJS. You can use a socketio listener or an adapter such as can.feathers(canjs). An adapter could exist for other frameworks such as...

View Article

Answer by Alexis Abril for How can I refer to a parent from a child?

I'd also move showAlert onto the prototype, so you're not creating a new function in memory every time you instantiate ParentControl.var ParentControl = function() { this.childControl = new...

View Article


Answer by Alexis Abril for Canjs – When to use which mustache tag when...

Assuming list is a can.List instance:{{#if list}}will check for the truthy value of list. This is akin to checking for the truthy value of any JS object and will result to true, regardless of list...

View Article

Moving a custom configuration group to a separate file

I've recently wrote a rather large custom configuration group. I'm curious if it is possible to move this configuration to a separate file via the...

View Article


Answer by Alexis Abril for Require.js Build Optimization Configuration

Interesting, I've actually not used this scenario with RequireJS, however this structure would make sense for bundles/progressively loading files.What I've done in the past is one of two things:1) Use...

View Article

Answer by Alexis Abril for Nested Masterpages and .FindControl

When you're nesting master pages, you'll get an extra container "Content" you need to look through.As a result, if you're trying to use FindControl from a given child page the usual approach is...

View Article


Image may be NSFW.
Clik here to view.

Removing an item from a collection(NHibernate)

I have parent child relationship between two entities(Parent and Child).My Parent mapping is as follows:<class name="Parent" table="Parents"> ...<bag name="Children" cascade="all"><key...

View Article

Hosting a WCF Atom feed in IIS

I have a simple Atom 1.0 feed that I've generated, similar to the example shown on MSDN.However, instead of creating a host and testing the feed via console application, as in the example, I'm...

View Article

"Session is Closed!" - NHibernate

This is in a web application environment:An initial request is able to successfully complete, however any additional requests return a "Session is Closed" response from the NHibernate framework. I'm...

View Article
Browsing all 43 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>