Quantcast
Channel: User Alexis Abril - Stack Overflow
Browsing index pages (43 articles)

WCF UriTemplate with large query strings

I'm working with a rather large query string(~30+ parameters) and am trying to pass them to a WCF service I've setup.I've run into a few issues specifically with the UriTemplate field. This service is...

View Article


Comment by Alexis Abril on How to imitate focus on a div element?

Much appreciated. So much cleaner than adding additional elements to the page.

View Article


How to reload/refresh an element(image) in jQuery

Is it possible to reload an image with an identical file name from a server using jQuery?For example, I have an image on a page, however, the physical image can change based on user actions. Note, this...

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

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


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

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

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


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 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

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 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 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


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 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


"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 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


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 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 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
Browsing index pages (43 articles)


Latest Images