AjaxWiki
http://ajaxwiki.sowas.com/
2024-03-19T04:59:59+01:00
AjaxWiki
http://ajaxwiki.sowas.com/
http://ajaxwiki.sowas.com/lib/tpl/monobook/images/favicon.ico
-
text/html
2015-10-17T21:41:40+01:00
nosch
jquery:load-javascript - angelegt
http://ajaxwiki.sowas.com/doku.php?id=jquery:load-javascript&rev=1445110900&do=diff
JQuery
$.getScript("new-script.js");
-
text/html
2015-10-17T21:40:27+01:00
nosch
jquery:jquery
http://ajaxwiki.sowas.com/doku.php?id=jquery:jquery&rev=1445110827&do=diff
* Checkbox prüfen
* ComboBox (select)
* Selektieren eines Eintrags
* ComboBox füllen
* ComboBox leeren
* ComboBox, Selektion feststellen
* Combobox, Selektionsänderung feststellen
* Input, Wert setzen
* JavaScript nachladen
* Meta-Tags ändern
* Standartaktion verhindern
-
text/html
2015-04-13T20:35:10+01:00
nosch
jquery:combo-select
http://ajaxwiki.sowas.com/doku.php?id=jquery:combo-select&rev=1428950110&do=diff
JQuery
Einen Eintrag in einer ComboBox (select) wählt man am Besten wie folgt aus:
<select id="myCombo">
<option value="1">Wert 1</option>
<option value="2">Wert 2</option>
<option value="3">Wert 3</option>
</select>
$("#MyCombo option[value='2']").attr('selected', true); // Zweiter Eintrag wird selektiert
-
text/html
2015-04-13T20:31:24+01:00
nosch
jquery:combobox-selection
http://ajaxwiki.sowas.com/doku.php?id=jquery:combobox-selection&rev=1428949884&do=diff
JQuery
<select id="myCombo">
<option value="1">Wert 1</option>
<option value="2">Wert 2</option>
<option value="3">Wert 3</option>
</select>
$("#myCombo").change(function() {
alert("Selektiert wurde: " + $('#myCombo option:selected').text());
});
-
text/html
2015-04-13T20:29:31+01:00
nosch
javascript:javascript
http://ajaxwiki.sowas.com/doku.php?id=javascript:javascript&rev=1428949771&do=diff
* Default-Parameter
* html escapen
* URL-Parameter ändern
* if-else-logik für NOSCRIPT
-
text/html
2015-03-09T08:15:58+01:00
nosch
php:websockets
http://ajaxwiki.sowas.com/doku.php?id=php:websockets&rev=1425885358&do=diff
PHP
WebSockets am PHP-Server:
// Error Reporting und Zeitlimit für Serverbetrieb setzen:
error_reporting(E_ERROR);
set_time_limit (0);
$host = 'localhost'; // Serverhost auf der gelauscht werden soll
$port = 12345; // Port auf dem gelaucht werden sollen
// Socket erstellen:
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
// Socket an Adresse und Port binden:
socket_bind($sock, $host, $port);
// An Port lauschen:
socket_listen($sock);
$sockets = array($sock);
$arClients…
-
text/html
2015-03-09T08:11:35+01:00
nosch
php:php
http://ajaxwiki.sowas.com/doku.php?id=php:php&rev=1425885095&do=diff
* E-Mail mit SSL versenden
* FTP Datei-Upload
* SQL escapen
* WebSockets
-
text/html
2015-03-01T14:52:11+01:00
nosch
php:sql-escaping
http://ajaxwiki.sowas.com/doku.php?id=php:sql-escaping&rev=1425217931&do=diff
PHP
$sql = mysql_real_escape_string (mysqli $handler, string $escapestr)
$sql = mysqli_real_escape_string (mysqli $handler, string $escapestr)