Community Member Profile
- Profile: /members/3151-Martin-Mädler.htm
- URL: http://github.com/MartinMa
- Comments: 7
- Points: 304
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 s... 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 di... 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 »
-
jQuery Template Markup Language (JTML) AJAX Demo
Posted on Apr 29, 2010 at 10:16 AM
Haha, nice Flight of the Conchords reference! I really dig this template concept. Thanks, this demo is really helpful. Is this the template engine which shall become part of jQuery core one day?... 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\" \"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 »



