Martin Mädler
Member since Mar 25, 2009
- Profile: /members/3151-martin-m-dler.htm
- URL: http://github.com/MartinMa
- Comments: 29
Recent Blog Comments By Martin Mädler
-
Exploring Javascript's parseInt() And parseFloat() Functions
Posted on Sep 16, 2010 at 11:30 AM
I have been falling into the trap of parseInt as well. It was quite surprising to find out that base 10 is not the standard behavior unless you tell the function otherwise. Thanks for pointing it out to the masses!... read more »
-
Ask Ben: Print Part Of A Web Page With jQuery
Posted on May 14, 2010 at 8:48 AM
@raloocka Todd Rafferty mentioned jqPrint in a comment earlier, which is supposed to work in Opera. http://plugins.jquery.com/project/jqPrint... read more »
-
Javascript's IN Operator Does Not Work With Strings
Posted on May 11, 2010 at 3:54 PM
From my understanding it temporarily converts a string literal to a String object if you try to call a member function of String (either inherited or core). But since IN is an operator and technically no member function, there is no convertion. Anyway, I too find it confusing to have string primiti... read more »
-
Javascript's IN Operator Does Not Work With Strings
Posted on May 11, 2010 at 10:30 AM
Really really :) Take a look at this (especially the evaluation examples) https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String... read more »
-
Javascript's IN Operator Does Not Work With Strings
Posted on May 11, 2010 at 10:18 AM
There is a difference between string primitives and String objects in Javascript. When you change the line var stringValue = ""; to var stringValue = new String(""); it will work as expected. Javascript is weird ;) String primitives and String objects give also different results when using the ev... read more »
-
Javascript Multiline Regular Expressions Don't Include Carriage Returns In IE
Posted on May 10, 2010 at 1:56 PM
That's quite alarming. I've used regular expressions to seperate lines before. Gotta take a deeper look into that... Thanks for pointing it out Ben!... read more »
-
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\" \" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\ ">" ); # objDoc.write( "<htm... 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 »
-
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: $(".printme a")... 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 this: imgLoad(i... 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 »