Community Member Profile

Martin Mädler
Member since Mar 25, 2009

Recent Blog Comments By Martin Mädler

  • Embedding Secret Messages In An Image Using ColdFusion

    Posted on Jan 8, 2010 at 6:32 PM

    Steganography rules! :)... read more »

  • Creating An Infinite Scroll Effect With jQuery And ColdFusion

    Posted on Jan 4, 2010 at 10:20 AM

    Awesome, that's a really comprehensive explanation! I like how you dig into a certain topic and not just explain how to use a plugin but how things actually work in real life ;) Also gotta say: the illustration rocks :) May I ask how you do that, principally the snappy arrows?... read more »

  • NYC + Snow + ColdFusion + jQuery = Winter Wonderland

    Posted on Dec 20, 2009 at 3:43 PM

    Ha ha ha, awesome! We have tons of snow here, too (Cologne, Germany). I tried to build a snowman today but failed miserably. The snow is too powdery, it just won't stick together.... read more »

  • Sharing Event Handlers Across jQuery Event Bindings To A Single Element

    Posted on Dec 18, 2009 at 10:29 AM

    Interesting observation Ben. I didn't know you could provide additional information with an event-binding and it would have made sense if it has created a new event handler when this information changes. Looking at unbind explains it all. Although it is a bit of a dodgy design choice.... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Oct 15, 2009 at 11:20 AM

    Hi Darren, nice to read you made it. I've never used the referencing feature myself. This would be an option as well: objDoc.write( "<style type=\"text/css\"> @import url(\"./css/print.css\") </style>"); Best Regards -Martin... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Oct 15, 2009 at 8:16 AM

    Hi Darren, it looks like you're missing the double quotes. I think this should work: objDoc.write( "<link rel=\"stylesheet\" href=\"/css/print.css\" type=\"text/css\" media=\"print\" />" );... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Oct 15, 2009 at 7:30 AM

    Hi Darren, does your "temp document DIV" include the print.css, too? It's used for styling the iframe. # objDoc.open(); # objDoc.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Oct 15, 2009 at 4:48 AM

    @Darren you can do this via css. search for css media types. it goes something like this: @media print { /* style sheet for print goes here it only applies to the printed page*/ }... read more »

  • Returning An Array From jQuery's Map() Utility Function

    Posted on Sep 16, 2009 at 10:30 AM

    Yo dawg I heard you like arrays, so we put arrays in your array so you can reference while you reference :) (sorry couldn't resist) But seriously, I think that's quite useful. Thanks for this post!... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Sep 2, 2009 at 12:47 PM

    Or you can use $("a.printme") (you nearly got it right!) and have the printme class assigned to the a-element instead. sorry Ben for flooding your blog comments ;)... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Sep 2, 2009 at 12:39 PM

    Sorry for confusing you. That was my fault. You can fix it by moving the class attribute printme to the outer span element. Like this: < span class="archiveLink" class="printme" >< a >print this page< /a >< /span > together with this selector: $("... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on Sep 2, 2009 at 10:40 AM

    change $("a") to $(".printme a") and add class="printme" to all <a> elemnts which are supposed to initiate the printing routine. (you can have multiple classes assigned to one html element)... read more »

  • jQuery Attr() Function Doesn't Work With IMAGE.complete

    Posted on Aug 5, 2009 at 10:45 AM

    Thanks Ben, that does make sense. With like 5 images it ain't no big deal.... read more »

  • jQuery Attr() Function Doesn't Work With IMAGE.complete

    Posted on Aug 2, 2009 at 12:37 PM

    Spiffy loader Stephen! @all Let's say I want to preload 4 images with Stephen's function. Would you recommend to call imgLoad(...) five times in a row or to wait until the first image has been loaded completely and then requesting the second image and so forth? I mean something like th... read more »

  • The Regular Expression Cookbook By Steven Levithan And Jan Goyvaerts

    Posted on Jul 27, 2009 at 2:14 PM

    Thanks for the recommendation. Deffo gonna give it a shot! I'm in love with regular expressions since 2005 when I stumbled on the co-author's regular expressions info site and subsequently built a code (c++) highlighting integration for phpbb.... read more »

  • Create A Running Average Without Storing Individual Values

    Posted on Jul 8, 2009 at 11:45 AM

    You reduce the purpose of databases to absurdity by storing lists in a single field. As already stressed by Dave it's better (for the performance) to "roll out" the lists on to a convenient scheme. Database management systems are superfast. Apart from totaling and maximization, it's possible to u... read more »

  • Create A Running Average Without Storing Individual Values

    Posted on Jul 3, 2009 at 6:48 PM

    Nice dodge! I dig the idea to force out the last bit of performance out of a chunk of code, even though it's such a minor thing. Heard of this kinda approach in connection with "running sums". @Roland Collins Yet, this approach still "looks" quite numerical stable (see testruns). I thi... read more »

  • June 1st 2009 - 2nd Annual (Inter)?National Regular Expression Day!

    Posted on Jun 1, 2009 at 3:01 PM

    ^(..)*$ matches all even tweets (in my mind, didn't test it). thus probably cuts the tweet flood in half ;) ok if that doesn't count. this (hopefully) recognizes all "I'm listening to whatnot" tweets/blips http://blip\.fm... read more »

  • Ask Ben: Print Part Of A Web Page With jQuery

    Posted on May 22, 2009 at 5:34 AM

    That's very clever and makes things so much easier from a developer's perspective. I used to craft a print.css which makes use of the html media type print and hides all GUI elements on the page among with some other markup changes. It does not work flawlessly with all browsers, though.... read more »

  • Creating Tiny URLs Using ColdFusion

    Posted on Mar 26, 2009 at 1:26 PM

    @Jason & @Ben I could imagine that the database internally holds the max value of each column separately. Thus every DB query of that kind should be processed in a constant amount of time. But I'm interessted in your test results!... read more »

Member Account Kinky Solutions Shop