| | |
| Stránka: 1 z 1
| [ Príspevkov: 5 ] | |
Autor | Správa |
---|
Registrovaný: 30.04.09 Prihlásený: 11.02.10 Príspevky: 723 Témy: 81 |
tomuto jednoduchemu prikazu mi IE nerozumie
document.getElementById('buttonN').disabled = false
pritom true funguje
preco?
|
|
Registrovaný: 11.08.07 Príspevky: 4088 Témy: 34 Bydlisko: Brno | Napísal Ďuri: 27.10.2009 15:19 | |
|
Musi to ist. Vyskusaj readonly = true, ale pochybujem... Hod odkaz na zivu ukazku.
|
|
Registrovaný: 30.04.09 Prihlásený: 11.02.10 Príspevky: 723 Témy: 81 |
dakujem readonly funguje pre ie
oprava nefunguje pretoze readonly - true gombik neznefunkcni
Kód: if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { document.getElementById(\'buttonPREV\').readonly = true; }else{ document.getElementById(\'buttonPREV\').disabled = true; } v ie je button funkcny zrejme ide o moju chybu snazil som sa to zjednodusit a kontroloval som podla farieb Kód: if (x=='rgb(0, 0, 0)' && y=='rgb(0, 0, 0)'){ elem.disabled = false document.getElementById('buttonPREV').style.backgroundColor= '#8E5B5B' }else{ elem.disabled = true document.getElementById('buttonPREV').style.backgroundColor= '#D7BFBF' }
|
|
Registrovaný: 05.12.08 Prihlásený: 24.06.14 Príspevky: 59 Témy: 17 |
Citácia: oprava nefunguje pretoze readonly - true gombik neznefunkcni
v javascripte myslim treba pouzit "readOnly" namiesto "readonly". Skus to prepisat.
|
|
Registrovaný: 30.04.09 Prihlásený: 11.02.10 Príspevky: 723 Témy: 81 |
pardon za oberanie o cas....
chyba bola v tej podmienke nie v disabled=false
|
|
| Stránka: 1 z 1
| [ Príspevkov: 5 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|