Apr 17 2012

IE caching for ajax requests

Christoph

Thanks to dac-xp for this code candy

/*
 * random number for the shitty InternetExplorer to f*ck
 * their caching-system. I hope the programmers of the IE
 * caching for ajax requests will die a terrible death.
 */
var requestid = Math.random() * (9999999999-0+1);

Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewertungen, Durchschnitt: 5,00 von 5)
Loading...Loading...

Okt 23 2011

Complicate your code

Christoph

// To make Flash Storage work on IE, we have to load up an
// iFrame which contains an HTML page that embeds the
// object using an object tag wrapping an embed tag.
// Of course, this is unnecessary for all browsers except
// for IE, which, to my knowledge, is the only browser in
// existance where you need to complicate your code to
// fix bugs. Goddamnit. :(

Source: Direct link to the source code
Software: jStore
Programming language: Java Script

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 4,00 von 5)
Loading...Loading...

Dez 15 2010

Metacommenting should also be good

Christoph

/*JS File: ../js/data/export/flash.js*/
/**
 * @author antimatter15
 *
 * Wow! Flash! isn’t it all about this these days? Oh wait.
 * wrong version. Who cares? Flash is everwhere. It may suck
 * in some ways (cross-platformness) but its better than the
 * competition (*cough* silverlight *cough*)
 *
 * This probably doesn’t make much sense. I can’t even make
 * sense of this. But IDK. this is just another comment on
 * comments, which is now a commment on commments on comments
 * because meta-thinking is good, metacommenting should also
 * be good.
 */

Source: Direct link to the source code
Software: AJAX Animator
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (3 Bewertungen, Durchschnitt: 3,33 von 5)
Loading...Loading...

Jan 27 2010

IE’s textRange

Christoph

//IE’s textRange and selection object is woefully inadequate,
//which means this fancy stuff is gecko only sorry :-|
//Die Bill, Die. (IE supports it somewhat nativly though)

Source: Direct link to the source code
Software: Xinha
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 3,75 von 5)
Loading...Loading...

Dez 8 2009

Replaced immediately

Christoph

Thanks to Marco for this code candy.

// FIXME: the following 2 functions totally suck, are useless
// and should be replaced immediately.

Source: Direct link to the source code
Software: jQuery
Programming language: JavaScript

1 Star2 Stars3 Stars4 Stars5 Stars (5 Bewertungen, Durchschnitt: 4,00 von 5)
Loading...Loading...