kodyWiG

Tag: type

16 lip 2010

Kasowanie katalogów modyfikowanych 20 dni od daty bieżącej

find /var/www/xml -name "xml_sx_201*" -type d -mtime +20 | xargs -n 200 rm 2>/dev/null

Kasownie katalgów w katalogu xml, modyfikowanych 20 dni od daty bieżącej

find mtime name type xargs
19 lut 2010

Utworzenie obiektu typu ulica

('ul', 'Chełmska', '10', '10')::ulica_obj

CREATE TYPE ulica_obj AS (pre character varying, ulica character varying, d_nr character varying, m_nr character varying);
castowanie CREATE obj type
26 lis 2009

Funkcja wypełniająca w formularzu pola typu text

function sf2() {
  var f = document.f2;
  for(i=0;i<f.elements.length;i++) {
   if(f.elements[i].type=='text')
    f.elements[i].value = 'test';
  }
 }
elements text type
5 wrz 2008

Sprawdzenie typu zdarzenia oraz title linku

<head>
  <script type="text/javascript">
    window.onload = function () {
      document.getElementById('link').onclick = Info;
    }
    function Info() {
      alert(window.event.type);
      alert(this.getAttribute('title'));
    }
  </script>

</head>

<body>
  <a href="#" id="link" title="Miasto Warszawa, Lublin, Chełm, Zamość">zobacz miasta z title linku</a>
</body>
event getAttribute getElementById href link type window
2 wrz 2008

Dynamiczne dodawanie pola pola typu readonly

var cell = document.createElement("td");
inp = document.createElement("input");
if (idx > -1) {
  inp.value = sel.options[idx].text;
}
inp.type = "text";
inp.name = "numer_" + nr;
inp.size = 45;
inp.readOnly = true;
cell.appendChild(inp);

readOnly - Only musi byc z duzą literą( ale chyba tylko dla IE)

appendChild createElement input name readOnly type zize
  • 1
  • 2
  • →
Copyright © | kodyWiG Theme
  • JavaScript 217
  • PHP 139
  • CSS 105
  • HTML 74
  • GMap 47
  • Linux 46
  • PostgreSQL 34
  • MySQL 33
  • VBSCRIPT 32
  • jQuery 27
  • Smarty 27
  • Wordpress 27
  • Windows 24
  • SQL 19
  • htaccess 18
  • Perl 17
  • Programy 11
  • System 11
  • SQL Server 10
  • Leaflet 10
  • Rewrite 9
  • HTTP 8
  • VBA 7
  • React 7
  • Intellij IDEA 6
  • Telefony 6
  • WYSIWYG 6
  • XML 6
  • Nodejs 5
  • SVG 4
  • JSON 3
  • Docker 3
  • Rejestr 3
  • Nauka 2
  • Github 1
  • Bez kategorii 1
  • Opera 1
  • Rollup 1