Monday, December 19th, 2005
Degradable Live Search AHAH
Daniele Florio has taken AHAH: Asychronous HTML and HTTP and built a simple live search example.
The search degrades by having the live search happen on key presses, and getting rid of submit buttons if JavaScript is turned on:
<body onload="javascript:disableSubmit()">
function liveSearch(){
window.setTimeout("submit('liveSearch.php', 'GET')", 1);
}
function disableSubmit(){
document.forms[0].invia.style.visibility = "hidden";
}













What happened to the tag?
(argh.. are all “greater/lesser than” chars blocked, even when properly spaced?)
What happened to the noscript tag?
Hi Anton,
thanks for your advice, but this is a simple first example of liveSearch. Is possible to improve it, but I think that the important thing is that application is degradable and works without javascript. However, if you have others advice, please let me know at daniele[at]gizax.it
cheers
Daniele
Just what we need, ANOTHER meaningless acronym
acronym? What do you say? Degradable is not an acronym….Degradable means that application works correctly without all requirements.
I’m using AHAH… I don’t understand your post…
cheers
Daniele
[...] Ne approfitto per fugare alcuni dubbi. L’articolo è originale e AHAH lo stiamo sviluppando. Adesso per esempio supporta l’invio di dati tramite POST. Abbiamo anche ricevuto una segnalazione da AJAXIAN per il live search. [...]
[...] “degradabile” ossia funzionante anche per i browser che hanno javascript disattivato ( un altro esempio di LiveSearch in AHAH degradabile è stato pubblicato anche su Ajaxian.com ) [...]
I’d like to inform you that I have developed an AHAHImageUploader
that you can see here :
> http://www.gizax.it/experiments/AHAH/uploader/
Thanks to all
Daniele