Posted by skoch on 23. Januar 2012
Gerade hab ich mir die Frage gestellt, wie ich eine XML Datei formatieren kann. Und promt habe ich auch eine Lösung gefunden (und zwar hier: http://www.andrejkoelewijn.com/wp/2006/10/06/formatting-xml-document-with-pspad/ ) Einfach im PSPad Editor unter HTML -> TiDy -> Bearbeiten… folgendes einfügen: [TiDy format XML] add-xml-decl:yes add-xml-pi:yes alt-text:Image break-before-br:no doctype:AUTO drop-empty-paras:no drop-font-tags:yes fix-bad-comments:yes hide-endtags:no char-encoding:raw indent:yes indent-spaces:2 input-xml:yes output-xml:yes [...]
Filed under: Software, XML
No Comments »
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
Posted by skoch on 19. Oktober 2011
Schriftgröße in % definieren (nicht em, weil sonst doppelte Umrechnung, nicht px weil sonst User-Setting zur Standardgröße ignoriert wird) width und height eines img oder eines object in px definieren (sonst Qualitätsverlust) wenn ein Element hinsichtlich seiner Dimension relativ zum Parent Element definiert wird, verwende für width und height die Einheit % wenn ein Element [...]
Filed under: CSS, Programmierung
No Comments »
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 »
Posted by skoch on 1. August 2010
ForEach für JavaScript: for ( var key in myArray ) { alert ( myArray [ key ] ); }
Filed under: JavaScript
No Comments »
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 »
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 »
Posted by skoch on 8. Juni 2009
basename(‘E:\myfolder\mysubfolder\phpfile.php’) # Rückgabe: phpfile.php dirname(‘E:\myfolder\mysubfolder\phpfile.php’) # Rückgabe: E:\myfolder\mysubfolder
Filed under: PHP
No Comments »
Posted by skoch on 28. Mai 2009
iconv() without //IGNORE as known cuts the string at the first illegal character, but with //IGNORE it should not
Filed under: PHP
No Comments »
Posted by skoch on 11. Mai 2009
Zeichen im IE werden nur als weiße Kästchen angezeigt. Auch im Firefox werden Kästen angezeigt, hier aber jeweils mit vier Buchstaben. Hier fehlt die Sprachunterstützung im Betriebssystem (zugehörige Sprachpakete). Installierbar über Systemsteuerung -> Regions- und Sprachoptionen -> Sprachen -> Dateien für ostasiatische Sprachen installieren (aktivieren)
Filed under: Firefox, HTML, Internet Explorer, Windows XP
No Comments »