Home | Login

Development-Blog

Hier schreibe ich meine Erfahrungen und Recherchen zu verschiedenen Problemen nieder. Es dient lediglich zum Nachschlagen, weiter nichts!!! Ich erhebe hier keinen Anspruch auf Richtigkeit oder Alleinstellung.

  • Impressum
  • Kalender

    Februar 2012
    M D M D F S S
    « Jan    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Pages

    • Impressum
  • Catagories

    • Allgemeines (7)
    • Apache (1)
    • Carminat TomTom (1)
    • Citrix (1)
    • CSS (8)
    • Firefox (4)
    • Fritz!Box (2)
    • HTML (2)
    • Internet Explorer (4)
    • JavaScript (14)
    • jQuery (1)
    • Linux (1)
    • Magento (4)
    • mySQL (4)
    • Outlook (2)
    • PHP (7)
    • Programmierung (1)
    • QNAP TS-239 Pro (1)
    • Samsung (1)
    • SharePoint (3)
    • Skype (1)
    • Software (2)
    • SSDs (1)
    • TomTom Home (1)
    • Windows 7 (11)
    • Windows Vista (3)
    • Windows XP (11)
    • Wordpress (1)
    • XML (1)
  • Archive

    • Januar 2012
    • Oktober 2011
    • April 2011
    • Februar 2011
    • Januar 2011
    • November 2010
    • September 2010
    • August 2010
    • Juli 2010
    • Juni 2010
    • Mai 2010
    • März 2010
    • Februar 2010
    • Januar 2010
    • November 2009
    • Oktober 2009
    • September 2009
    • August 2009
    • Juli 2009
    • Juni 2009
    • Mai 2009
    • April 2009
    • März 2009
    • Februar 2009
  • Linkliste

    • Development Blog
    • Documentation
    • Plugins
    • Suggest Ideas
    • Support Forum
    • Themes
    • WordPress Planet
  • Meta

    • Registrieren
    • Anmelden

[jQuery] autocomplete activate first item

Posted by skoch on 3. Januar 2012

  $(function() { /******* extend jQuery library **/ (function( $ ) { $( “.ui-autocomplete-input” ).live( “autocompleteopen”, function() { var autocomplete = $( this ).data( “autocomplete” ); var menu = autocomplete.menu; if ( !autocomplete.options.selectFirst ) return; /* together with bgiframe this does not work as it should because bgiframe creates an iframe as the first child [...]

Filed under: JavaScript, jQuery Kommentare deaktiviert

[jQuery-UI] Re-Center a dialog after windows was resized

Posted by skoch on 8. November 2010

If a jQuery UI dialog is open centered and the browser is resized, than the diqlog is no longer placed in the center of the window. Therefor we have to move it back to the center of the window. var windowResizeTimeout; $(window).resize(function() { clearTimeout ( windowResizeTimeout ); windowResizeTimeout = setTimeout ( ‘$(“.ui-dialog-content”).dialog(“option”, “position”, “center”);’, 250 [...]

Filed under: JavaScript No Comments »

[JavaScript] foreach

Posted by skoch on 1. August 2010

ForEach für JavaScript: for ( var key in myArray ) { alert ( myArray [ key ] ); }

Filed under: JavaScript No Comments »

[JS] IE äquivalent zu window.innerHeight – Fenstergröße im IE berechnen

Posted by skoch on 16. Juli 2009

/* * getWinSize ( window ) */ function getWinSize ( win ) { if ( !win ) win = window; var ret = new Object(); if ( typeof win.innerWidth != ‘undefined’ ) { ret.width = win.innerWidth; ret.height = win.innerHeight; } else { var obj = getBody ( win ); ret.width = parseInt ( obj.clientWidth ); ret.height = [...]

Filed under: JavaScript No Comments »

[JS] Scrollen innerhalb eines DIV

Posted by skoch on 14. Juli 2009

zu einer bestimmte Stelle scrollen: var obj = document.getElementById(“myDIV”); obj.scrollTop = 0; zum Ende scrollen: var obj = document.getElementById(“myDIV”); obj.scrollTop = obj.scrollHeight;

Filed under: JavaScript No Comments »

JavaScript: verbesserte typeof Function

Posted by skoch on 23. April 2009

this.Typeof = function (object) { if (object == null) return ‘null’; if (typeof object == ‘undefined’) return ‘undefined’; if (object.nodeName && object.nodeType == 1) return ‘element’; if (object.nodeName && object.nodeType == 3 && (!/\S/).test(object.nodeValue)) return ‘textnode’; if (object instanceof Function) return ‘function’; if (object instanceof Array) return ‘array’; if (typeof object == ‘object’) return ‘object’; [...]

Filed under: JavaScript No Comments »

URL zeulegen mit replace

Posted by skoch on 6. Februar 2009

window.location.href.replace(/?.*/, “”).replace(/(.+/).*/, “$1″); ———– // Funktion von Sebastian // ersetzt alle absoluten Pfade durch relative, sofern diese vom gleichen Verzeichnis ausgehen // dazu wird zuerst die aktuelle Location zerlegt und danach der Eintrag im Text gesucht und entfernt function switchAbsToRelURL ( object ) {   // komplettes Textfeld durchsuchen und absolute Pfade durch relative ersetzen [...]

Filed under: JavaScript No Comments »

Auf Elternfenster zugreifen

Posted by skoch on

opener.

Filed under: JavaScript No Comments »

innerText simulieren

Posted by skoch on

/* simulate obj.innerText / obj.textContent */ function getObjInnerText ( obj ) {     if ( obj.innerText ) // IE;         return obj.innerText;     else if (obj.textContent)         return obj.textContent;     else         return false; }

Filed under: JavaScript No Comments »

String Prototype erweitern

Posted by skoch on

/* enhance string prototype */ String.prototype.leftTrim = function () {     return ( this.replace ( /^s+/, “” ) ); }; String.prototype.rightTrim = function () {     return ( this.replace ( /s+$/, “” ) ); }; // combines “leftTrim” and “rightTrim”; String.prototype.Trim = function () {     return ( this.replace ( /s+$/, “” ).replace ( /^s+/, [...]

Filed under: JavaScript No Comments »

Nächste Seite »

Copyright © 2008 Development-Blog | XHTML 1.1 | CSS 2.1 | Design by Fernbap | WordPress Theme by DesertWolf