Jul 13 2009

Resets the rest

Christoph

// This function returns the first selected option and resets
// the rest in case some idiot has set more than one to
// selcted :-)

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

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

Apr 20 2009

A stupid child named foo

Christoph

/*
For some stupid reason that i don’t want to know, those alerts are ALWAYS returning the same sh*t under that sh*tty browser (Microsoft Internet Explorer 6), when i’m using element.getAttribute(‘foo’) i want to _GET_ THE F*CKING ‘foo’ _ATTRIBUTE_ of element NOT A STUPID CHILD named ‘foo’.
Thanks again lazy MSIE 6 developers!
*/

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

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

Apr 3 2009

Calendar voodoo

Christoph

// calendar voodoo for computing the first day that would
// actually be displayed in the calendar, even if it’s from
// the previous month.
// WARNING: this is magic. ;-)

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

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

Feb 6 2009

No script – no see

bridog

Vor einiger Zeit mal bei einem Dienstleister gesehen…

<script type=”text/javascript”>

document.write(“<noscript>…</noscript>”);

</script>

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