🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
1 messages
1 total messages Started by Artur Muszyński Tue, 06 Jul 2010 18:22
własny komponent
#50164
Author: Artur Muszyński
Date: Tue, 06 Jul 2010 18:22
25 lines
1669 bytes
Cześć,

Wyprodukowałem kiedyś komponent combobox jako IE6 behavior. Po latach 
przerobiłem go na crossbrowser i mam taki dylemat. Teraz jest tak:

<ul id="data1">...</ul>
<input type="text" id="txt1">
<script type="text/javascript">
ComboBox.attach("txt1",{list:"data1"})
</script>

Behaviory dawały oficjalną możliwość wstawiania niestandardowych 
atrybutów (i tagów), więc kiedyś było tak:

<ul id="data1">...</ul>
<input type="text" style="behavior:url(combo.htc)" list="data1">

W tej nowej wersji można by zaemulować atrybut list i tag <datalist> z 
HTML5. Technicznie to raczej nie jest problemem, ale czy to będzie 
właściwe podejście? Chodzi o walidację i może jakieś kwestie, których 
nie przemyślałem.

pozdrawiam

artur
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads