javascript

JanRain Engage in an AJAX environment

Posted by Arnoud ten Hoedt on November 22, 2010 at 12:17 pm

We where looking to embed Janrain in a somewhat complex AJAX driven single page interface flow. The default behavior of the JanRain Engage part of the flow is to redirect the top window to the token_url. As you can imagine this messes up your SPI state. likebot_bgcolor = ”; likebot_url = ‘http://www.roonaan.nl/press/?p=239′; likebot_type = ‘square_thumbs’;

Content as a service.

Posted by Arnoud ten Hoedt on November 5, 2010 at 10:54 pm

While having discussions with some colleagues, I find it amazing how otherwise very knowledgeable content management specialist find it very complex to see that the next generation for web content delivery should be content as a service. Talking endlessly on terms like pre-publishing, caching, creating complex webservices, reverting back to JSP’s, PHP’s or servlets, it’s [...]

JSONP-DOM, JSONP without callback querystring.

Posted by Arnoud ten Hoedt on October 31, 2010 at 10:52 am

While working on centrally hosted Backbase widgets we needed a JSONP solution that is cachable by proxies (Squid, akamai) as well for browsers. Where regular JSONP requires the response to wrap the response using a callback. As we have full control on the response, the solution we came up with (and dubbed “JSONP-DOM”) is to [...]

Working around __flash_removeCallback

Posted by Arnoud ten Hoedt on September 20, 2010 at 7:17 am

Abusing your own blog for delicious like bookmarking should be forbidden! Either way, Dave Smith provides (see comment section) a nice workaround for __flash_removeCallback “Object required” alerts when embedding flash in internet explorer and reloading the page. <script type=”text/javascript”> (function(){var s=function(){__flash__removeCallback=function(i,n){if(i)i[n]=null;};window.setTimeout(s,10);};s();})(); </script> I decreased the setTimeout interval to somewhat higher then 10ms, because for me [...]

Approach towards Lazy Loading and booting Backbase

Posted by Arnoud ten Hoedt on September 2, 2010 at 3:21 pm

Introduction I am not under the impression that what we are doing here is rocket science, but might be nice to share anyway. Lets first elaborate a bit on the situation at hand. At my current client Backbase is used in a progressive enhancement kind of way: <!– Backbase Library –> <script type=”text/javascript” src=”core/4_3_1/engine/backbase.js”></script> <!– [...]

Reflection 1

Posted by Arnoud ten Hoedt on July 29, 2010 at 5:50 pm

Do you know the feeling that some four weeks after you finish a project you get that moment of reflection. You decide what you have learned, what you seriously never need to do ever again, or just be amazed at how things came and went and in the end there is something there but you [...]